[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r1298: If the control socket gets disconnected, say, because arma ^ (trunk/src/control)



Author: edmanm
Date: 2006-10-06 00:20:51 -0400 (Fri, 06 Oct 2006)
New Revision: 1298

Modified:
   trunk/src/control/controlconnection.cpp
Log:
If the control socket gets disconnected, say, because arma ^c'ed his Tor, we
need to exit the thread's event loop since there will be no more events.


Modified: trunk/src/control/controlconnection.cpp
===================================================================
--- trunk/src/control/controlconnection.cpp	2006-10-06 03:50:48 UTC (rev 1297)
+++ trunk/src/control/controlconnection.cpp	2006-10-06 04:20:51 UTC (rev 1298)
@@ -256,6 +256,8 @@
   _sock = new ControlSocket();
   QObject::connect(_sock, SIGNAL(readyRead()), this, SLOT(onReadyRead()),
                    Qt::DirectConnection);
+  QObject::connect(_sock, SIGNAL(disconnected()), this, SLOT(quit()),
+                   Qt::DirectConnection);
   _sock->installEventFilter(this);
   _connMutex.unlock();