diff options
| author | Cory Fields <[email protected]> | 2016-12-27 17:13:31 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2017-01-03 17:56:21 -0500 |
| commit | 8b3159ef0a912da67c545a3d24f4558f8df866e4 (patch) | |
| tree | d98a7bc50b3b21faec735afd103d34ca22b54936 /src/net.cpp | |
| parent | net: remove thread_interrupted catch (diff) | |
| download | discoin-8b3159ef0a912da67c545a3d24f4558f8df866e4.tar.xz discoin-8b3159ef0a912da67c545a3d24f4558f8df866e4.zip | |
net: make proxy receives interruptible
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index bbfada430..7e16e2382 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2157,6 +2157,7 @@ bool CConnman::Start(CScheduler& scheduler, std::string& strNodeError, Options c // // Start threads // + InterruptSocks5(false); interruptNet.reset(); flagInterruptMsgProc = false; @@ -2208,6 +2209,7 @@ void CConnman::Interrupt() condMsgProc.notify_all(); interruptNet(); + InterruptSocks5(true); if (semOutbound) for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++) |