net: make proxy receives interruptible

This commit is contained in:
Cory Fields
2016-12-27 17:13:31 -05:00
parent 5cb0fcee81
commit 8b3159ef0a
3 changed files with 13 additions and 2 deletions

View File

@@ -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++)