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:
lotodore
2009-01-25 21:12:33 +00:00
parent 17377f5a6b
commit 3c820445c6
3 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -46,7 +46,6 @@ SenderThread::SendDataManager::HandleWrite(const boost::system::error_code& erro
SetCompleted(true); SetCompleted(true);
} }
SenderThread::SenderThread(SenderCallback &cb) SenderThread::SenderThread(SenderCallback &cb)
: m_callback(cb) : m_callback(cb)
{ {
@@ -147,6 +146,7 @@ SenderThread::Main()
} }
i = next; i = next;
} }
m_ioService.run_one();
Msleep(SEND_TIMEOUT_MSEC); Msleep(SEND_TIMEOUT_MSEC);
} }
} }
-1
View File
@@ -71,7 +71,6 @@ public:
} }
virtual void SignalSessionTerminated(unsigned /*session*/) virtual void SignalSessionTerminated(unsigned /*session*/)
{ {
// Nothing to do, since we only have one sender thread.
} }
private: private: