commit 88f5ee89e26ec8e2c8a4b9a5c6cefa8f07f5036d Author: Tomás Touceda chiiph@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())
tor-commits@lists.torproject.org