dont connect if already connecting
This commit is contained in:
parent
6037d29c4c
commit
39850455da
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ ScStwClient::ScStwClient(QObject * parent, QList<ScStw::SignalKey> signalSubscri
|
|||
|
||||
void ScStwClient::connectToHost() {
|
||||
|
||||
if(this->state != DISCONNECTED)
|
||||
return;
|
||||
|
||||
setState(CONNECTING);
|
||||
|
||||
//connect
|
||||
|
|
Reference in a new issue