mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
SIGABRT handler, crash fix
This commit is contained in:
parent
e6fc20114e
commit
6f3a20f53f
2 changed files with 5 additions and 2 deletions
|
|
@ -84,7 +84,6 @@ Server_Game *Server_Room::createGame(const QString &description, const QString &
|
|||
|
||||
Server_Game *newGame = new Server_Game(creator, static_cast<Server *>(parent())->getNextGameId(), description, password, maxPlayers, gameTypes, onlyBuddies, onlyRegistered, spectatorsAllowed, spectatorsNeedPassword, spectatorsCanTalk, spectatorsSeeEverything, this);
|
||||
newGame->moveToThread(thread());
|
||||
newGame->setParent(this);
|
||||
// This mutex needs to be unlocked by the caller.
|
||||
newGame->gameMutex.lock();
|
||||
games.insert(newGame->getGameId(), newGame);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue