mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
fixed socket bug and simplified readClient()
This commit is contained in:
parent
b4fd5797f5
commit
03847a9b36
3 changed files with 7 additions and 19 deletions
|
|
@ -2,13 +2,12 @@
|
|||
#include "client.h"
|
||||
|
||||
Client::Client(QObject *parent)
|
||||
: QObject(parent)
|
||||
: QObject(parent), MsgId(0)
|
||||
{
|
||||
timer = new QTimer(this);
|
||||
timer->setInterval(1000);
|
||||
connect(timer, SIGNAL(timeout()), this, SLOT(checkTimeout()));
|
||||
|
||||
MsgId = 0;
|
||||
status = StatusDisconnected;
|
||||
socket = new QTcpSocket(this);
|
||||
socket->setTextModeEnabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue