|author||Alan <email@example.com>||2015-09-10 23:08:53 +0000|
|committer||Alan <firstname.lastname@example.org>||2015-09-10 23:08:53 +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.
1 files changed, 3 insertions, 2 deletions
@@ -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.
# The stream has a new circuit, add it with its new parent.