summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/part/commanalyzer/part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tde/src/part/commanalyzer/part.cpp')
-rw-r--r--clients/tde/src/part/commanalyzer/part.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clients/tde/src/part/commanalyzer/part.cpp b/clients/tde/src/part/commanalyzer/part.cpp
index 3fd89eb..592e64d 100644
--- a/clients/tde/src/part/commanalyzer/part.cpp
+++ b/clients/tde/src/part/commanalyzer/part.cpp
@@ -79,10 +79,12 @@ bool CommAnalyzerPart::openURL(const KURL &url) {
}
bool CommAnalyzerPart::closeURL() {
- m_socket->close();
-
- while (m_socket->state() != TQSocket::Idle) {
- tqApp->processEvents();
+ if (m_socket) {
+ m_socket->close();
+
+ while (m_socket->state() != TQSocket::Idle) {
+ tqApp->processEvents();
+ }
}
m_url = KURL();