[tor-commits] [vidalia/alpha] Don't issue control commands for every single router
chiiph at torproject.org
chiiph at torproject.org
Wed May 30 02:01:55 UTC 2012
commit 88f5ee89e26ec8e2c8a4b9a5c6cefa8f07f5036d
Author: Tomás Touceda <chiiph at torproject.org>
Date: Sat May 26 19:22:31 2012 -0300
Don't issue control commands for every single router
---
src/vidalia/network/NetViewer.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/vidalia/network/NetViewer.cpp b/src/vidalia/network/NetViewer.cpp
index 2c6ae47..1571de1 100644
--- a/src/vidalia/network/NetViewer.cpp
+++ b/src/vidalia/network/NetViewer.cpp
@@ -401,12 +401,17 @@ NetViewer::preLoadNetworkStatus()
ui.lblOffline->setVisible(true);
}
+ bool usingMicrodescriptors = _torControl->useMicrodescriptors();
+
foreach(RouterStatus rs, networkStatus) {
+ if (!_torControl->isConnected())
+ return;
+
if (!rs.isRunning())
continue;
RouterDescriptor rd = _torControl->getRouterDescriptor(rs.id());
- if(_torControl->useMicrodescriptors()) {
+ if(usingMicrodescriptors) {
rd.appendRouterStatusInfo(rs);
}
if (!rd.isEmpty())
More information about the tor-commits
mailing list