| 1921 | } |
| 1922 | |
| 1923 | void ODServer::notifyExit() |
| 1924 | { |
| 1925 | while(!mServerNotificationQueue.empty()) |
| 1926 | { |
| 1927 | delete mServerNotificationQueue.front(); |
| 1928 | mServerNotificationQueue.pop_front(); |
| 1929 | } |
| 1930 | |
| 1931 | ServerNotification* exitServerNotification = new ServerNotification( |
| 1932 | ServerNotificationType::exit, nullptr); |
| 1933 | queueServerNotification(exitServerNotification); |
| 1934 | } |
| 1935 | |
| 1936 | ODSocketClient* ODServer::getClientFromPlayer(Player* player) |
| 1937 | { |