From 370180c8df763137ee56274690431cea543b5235 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 13 May 2011 17:13:35 +0200 Subject: [PATCH] Prevent a SEGFAULT when Tor is 'restarted' without being started first This has the side-effect of potentionally popping up a warning message when Tor is relaying, but I think this could be considered a feature. If it's undesirably, copying the lower half of MainWindow::stop() into MainWindow::restart() should work, too. --- src/vidalia/MainWindow.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp index c373d01..90dbe5f 100644 --- a/src/vidalia/MainWindow.cpp +++ b/src/vidalia/MainWindow.cpp @@ -1403,7 +1403,7 @@ MainWindow::toString(TorStatus status) void MainWindow::restart() { - if(_torControl->stop()) { + if (stop()) { start(); } } -- 1.7.4.5