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

[vidalia-svn] r1299: Just because we sent a shutdown signal to Tor doesn't mean t (trunk/src/control)



Author: edmanm
Date: 2006-10-06 00:28:03 -0400 (Fri, 06 Oct 2006)
New Revision: 1299

Modified:
   trunk/src/control/torcontrol.cpp
Log:
Just because we sent a shutdown signal to Tor doesn't mean that it stopped. It
may just be napping for 30 seconds since we were running a server.


Modified: trunk/src/control/torcontrol.cpp
===================================================================
--- trunk/src/control/torcontrol.cpp	2006-10-06 04:20:51 UTC (rev 1298)
+++ trunk/src/control/torcontrol.cpp	2006-10-06 04:28:03 UTC (rev 1299)
@@ -146,11 +146,7 @@
   }
   /* If we didn't start our own Tor, send it a shutdown signal */
   if (!_torProcess) {
-    if (!this->signal(TorSignal::Shutdown)) {
-      return false;
-    }
-    emit stopped(0, QProcess::NormalExit);
-    return true;
+    return this->signal(TorSignal::Shutdown);
   } else {
     /* We started our own Tor, so stop the process */
     return _torProcess->stop(errmsg);