Some minor polishing.

This commit is contained in:
lotodore
2009-06-17 21:22:01 +00:00
parent 3377ae7397
commit eefbd9e79f
3 changed files with 25 additions and 34 deletions
+5 -10
View File
@@ -513,22 +513,17 @@ ServerLobbyThread::Main()
RegisterTimers();
try
{
{
boost::asio::io_service::work ioWork(*m_ioService);
m_ioService->run(); // Will only be aborted asynchronously.
}
boost::asio::io_service::work ioWork(*m_ioService);
m_ioService->run(); // Will only be aborted asynchronously.
// Clear all sessions.
m_sessionManager.Clear();
m_gameSessionManager.Clear();
// Execute remaining ready handlers.
m_ioService->reset();
m_ioService->poll();
} catch (const PokerTHException &e)
{
GetCallback().SignalNetServerError(e.GetErrorId(), e.GetOsErrorCode());
LOG_ERROR(e.what());
}
// Clear all sessions.
m_sessionManager.Clear();
m_gameSessionManager.Clear();
// Cancel pending timer callbacks.
CancelTimers();
}