[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Konversation] 3c227f7: Fix crash when closing server tab before
From:       Dario Abatianni <eisfuchs () tigress ! com>
Date:       2010-07-01 13:26:49
Message-ID: 20100701132649.75B8CBB5450 () projects ! kde ! org
[Download RAW message or body]

commit 3c227f75e26f0f55620631d69ff03a6a6e5a3869
Author: Dario Abatianni <eisfuchs@tigress.com>
Date:   Tue Sep 2 08:16:05 2003 +0000

    Fix crash when closing server tab before lookup was through
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=247758

diff --git a/konversation/server.cpp b/konversation/server.cpp
index f658aaf..a0fdc49 100644
--- a/konversation/server.cpp
+++ b/konversation/server.cpp
@@ -179,6 +179,9 @@ Server::~Server()
   queryList.setAutoDelete(true);
   while(queryList.removeFirst());
 
+  // kill resolver thread if it's still running
+  if(resolver.running()) resolver.terminate();
+
   // notify KonversationApplication that this server is gone
   emit deleted(this);
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic