mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
client and server related crash fixes
This commit is contained in:
parent
a2b30dc86f
commit
33546c6b74
8 changed files with 26 additions and 18 deletions
|
|
@ -37,7 +37,6 @@ private slots:
|
|||
void addGame(const QString description, const QString password, const int maxPlayers, ServerSocket *creator);
|
||||
void addClientToGame(int gameId, ServerSocket *client);
|
||||
void gameClosing();
|
||||
void socketDestroyed(QObject *obj);
|
||||
public:
|
||||
Server(QObject *parent = 0);
|
||||
~Server();
|
||||
|
|
@ -49,6 +48,7 @@ public:
|
|||
ServerGame *getGame(int gameId);
|
||||
AbstractRNG *getRNG() const { return rng; }
|
||||
void broadcastGameListUpdate(ServerGame *game);
|
||||
void removePlayer(ServerSocket *player);
|
||||
private:
|
||||
void incomingConnection(int SocketId);
|
||||
QList<ServerGame *> games;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue