diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-12-27 17:13:31 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2017-01-03 17:56:21 -0500 |
commit | 8b3159ef0a912da67c545a3d24f4558f8df866e4 (patch) | |
tree | d98a7bc50b3b21faec735afd103d34ca22b54936 /src/net.cpp | |
parent | 5cb0fcee8137d6de8d2b9525aa45fd11ab2231c8 (diff) |
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 bbfada4301..7e16e2382f 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++) |