| 1902 | } |
| 1903 | |
| 1904 | void ODServer::stopServer() |
| 1905 | { |
| 1906 | // We start by stopping server to make sure no new message comes |
| 1907 | ODSocketServer::stopServer(); |
| 1908 | |
| 1909 | mServerState = ServerState::StateNone; |
| 1910 | mSeatsConfigured = false; |
| 1911 | mDisconnectedPlayers.clear(); |
| 1912 | mPlayerConfig = nullptr; |
| 1913 | |
| 1914 | // Now that the server is stopped, we can remove all pending messages |
| 1915 | while(!mServerNotificationQueue.empty()) |
| 1916 | { |
| 1917 | delete mServerNotificationQueue.front(); |
| 1918 | mServerNotificationQueue.pop_front(); |
| 1919 | } |
| 1920 | mGameMap->clearAll(); |
| 1921 | } |
| 1922 | |
| 1923 | void ODServer::notifyExit() |
| 1924 | { |
no test coverage detected