[Pkg-privacy-commits] [onioncircuits] 46/62: Fix: actually compare the new circuit ID with a circuit ID
Intrigeri
intrigeri at moszumanska.debian.org
Thu Feb 18 20:20:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository onioncircuits.
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/onioncircuits.git
More information about the Pkg-privacy-commits
mailing list