[Pkg-privacy-commits] [tor-monitor] 02/06: Fix: actually compare the new circuit ID with a circuit ID

Sascha Steinbiss sascha-guest at moszumanska.debian.org
Sat Oct 31 15:09:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

sascha-guest pushed a commit to branch upstream
in repository tor-monitor.

commit 5e1a10cfedc1faf0de1acbdeaf74d97702266180
Author: Alan <alan at boum.org>
Date:   Thu Sep 10 23:08:53 2015 +0000

    Fix: actually compare the new circuit ID with a circuit ID
    
    We used to compare the new circuit ID with the old stream ID, which
    obviously was always false.
---
 tormonitor | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tormonitor b/tormonitor
index 5944a1d..ffc2ee3 100755
--- a/tormonitor
+++ b/tormonitor
@@ -414,8 +414,9 @@ class TorMonitorWindow(Gtk.ApplicationWindow):
         :var stem.response.events.StreamEvent stream: the stream
         """
         stream_iter = self._stream_to_iter[stream.id]
-        if stream.circ_id != self._treestore.get_value(stream_iter, 1):
-            # The stream doesn't belong its parent circuit anymore. Remove it.
+        circuit_iter = self._treestore.iter_parent(stream_iter)
+        if stream.circ_id != self._treestore.get_value(circuit_iter, 1):
+            # The stream doesn't belong to its parent circuit anymore. Remove it.
             self.remove_stream(stream)
             if stream.circ_id:
                 # The stream has a new circuit, add it with its new parent.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tor-monitor.git



More information about the Pkg-privacy-commits mailing list