forked from External/mage
Fixed thread pool leak and work queue growing.
This commit is contained in:
parent
c7ae032d5a
commit
cfa779661d
5 changed files with 24 additions and 4 deletions
|
|
@ -278,7 +278,8 @@ public class GameController implements GameCallback {
|
|||
|
||||
public void kill(UUID sessionId) {
|
||||
if (sessionPlayerMap.containsKey(sessionId)) {
|
||||
gameSessions.get(sessionPlayerMap.get(sessionId)).setKilled();
|
||||
GameSession session = gameSessions.get(sessionPlayerMap.get(sessionId));
|
||||
session.destroy();
|
||||
gameSessions.remove(sessionPlayerMap.get(sessionId));
|
||||
leave(sessionId);
|
||||
sessionPlayerMap.remove(sessionId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue