Fixed missing completion call issue. However, boost::asio now automatically closes the socket. This cannot be disabled. So the next step is to use the boost::asio socket class for the session and everywhere else.
This commit is contained in:
@@ -46,7 +46,6 @@ SenderThread::SendDataManager::HandleWrite(const boost::system::error_code& erro
|
||||
SetCompleted(true);
|
||||
}
|
||||
|
||||
|
||||
SenderThread::SenderThread(SenderCallback &cb)
|
||||
: m_callback(cb)
|
||||
{
|
||||
@@ -147,6 +146,7 @@ SenderThread::Main()
|
||||
}
|
||||
i = next;
|
||||
}
|
||||
m_ioService.run_one();
|
||||
Msleep(SEND_TIMEOUT_MSEC);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ public:
|
||||
}
|
||||
virtual void SignalSessionTerminated(unsigned /*session*/)
|
||||
{
|
||||
// Nothing to do, since we only have one sender thread.
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user