From 938825f27b81b16c66bc1b245b8ccc909cc78aae Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Wed, 12 Aug 2009 16:50:18 +0200 Subject: [PATCH] small client bug fix --- cockatrice/src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/client.cpp b/cockatrice/src/client.cpp index e4f6d95b..d143dabc 100644 --- a/cockatrice/src/client.cpp +++ b/cockatrice/src/client.cpp @@ -204,6 +204,8 @@ PendingCommand *Client::cmd(const QString &s) void Client::connectToServer(const QString &hostname, unsigned int port, const QString &_playerName, const QString &_password) { + disconnectFromServer(); + playerName = _playerName; password = _password; socket->connectToHost(hostname, port);