Commit 9eaef37a authored by Matt Edman's avatar Matt Edman
Browse files

We were getting some duplicate messages in the message log from reading them

both from stdout and from the control socket.


svn:r810
parent 916214a1
Loading
Loading
Loading
Loading
+4 −4
Changes for src/control/torcontrol.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -171,14 +171,14 @@ TorControl::onConnected()
    stop();
    return;
  }
  
  /* Let interested parties know that the control socket connected */
  emit connected();
  emit connected(true);
  /* The control socket is connected, so we can stop reading from stdout */
  if (_torProcess) {
    _torProcess->closeStdout();
  }
  
  /* Let interested parties know that the control socket connected */
  emit connected();
  emit connected(true);
}

/** Emits a signal that the control connection to Tor failed. */