Fixed server termination crash. However, network games are still not properly terminated.

This commit is contained in:
lotodore
2009-06-04 20:37:18 +00:00
parent 47648392fb
commit 8005cc82c6
3 changed files with 5 additions and 9 deletions
-4
View File
@@ -518,10 +518,6 @@ ServerLobbyThread::Main()
GetCallback().SignalNetServerError(e.GetErrorId(), e.GetOsErrorCode());
LOG_ERROR(e.what());
}
// Remove all sessions.
m_gameSessionManager.Clear();
m_sessionManager.Clear();
}
void
-1
View File
@@ -31,7 +31,6 @@ SessionManager::SessionManager()
SessionManager::~SessionManager()
{
Clear();
}
bool
+5 -4
View File
@@ -173,10 +173,14 @@ private:
boost::shared_ptr<boost::asio::io_service> m_ioService;
boost::shared_ptr<boost::asio::io_service::work> m_work;
TimerManager m_timerManager;
boost::shared_ptr<ServerSenderCallback> m_senderCallback;
boost::shared_ptr<SenderInterface> m_sender;
boost::shared_ptr<ReceiverHelper> m_receiver;
SessionManager m_sessionManager;
SessionManager m_gameSessionManager;
TimerManager m_timerManager;
TimerClientAddressMap m_timerAvatarClientAddressMap;
mutable boost::mutex m_timerAvatarClientAddressMapMutex;
@@ -197,9 +201,6 @@ private:
GameMap m_gameMap;
boost::shared_ptr<SenderInterface> m_sender;
boost::shared_ptr<ReceiverHelper> m_receiver;
boost::shared_ptr<ServerSenderCallback> m_senderCallback;
GuiInterface &m_gui;
AvatarManager &m_avatarManager;