diff --git a/cockatrice/src/remoteclient.cpp b/cockatrice/src/remoteclient.cpp index e1bda71e..59b8e73b 100644 --- a/cockatrice/src/remoteclient.cpp +++ b/cockatrice/src/remoteclient.cpp @@ -364,8 +364,8 @@ void RemoteClient::disconnectFromServer() QString RemoteClient::getSrvClientID(const QString _hostname) { - QString srvClientID = settingsCache->getClientID(); - srvClientID += _hostname; - QString uniqueServerClientID = QCryptographicHash::hash(srvClientID.toUtf8(), QCryptographicHash::Sha1).toHex().right(15); - return uniqueServerClientID; + QString srvClientID = settingsCache->getClientID(); + srvClientID += _hostname; + QString uniqueServerClientID = QCryptographicHash::hash(srvClientID.toUtf8(), QCryptographicHash::Sha1).toHex().right(15); + return uniqueServerClientID; } \ No newline at end of file diff --git a/cockatrice/src/remoteclient.h b/cockatrice/src/remoteclient.h index 3b54cfda..ed0b66db 100644 --- a/cockatrice/src/remoteclient.h +++ b/cockatrice/src/remoteclient.h @@ -51,7 +51,7 @@ private: QTcpSocket *socket; QString lastHostname; int lastPort; - QString getSrvClientID(const QString _hostname); + QString getSrvClientID(const QString _hostname); protected slots: void sendCommandContainer(const CommandContainer &cont); public: