dont connect if already connecting

This commit is contained in:
Dorian Zedler 2021-01-05 20:12:47 +01:00
parent 6037d29c4c
commit 39850455da
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37

View file

@ -50,6 +50,9 @@ ScStwClient::ScStwClient(QObject * parent, QList<ScStw::SignalKey> signalSubscri
void ScStwClient::connectToHost() {
if(this->state != DISCONNECTED)
return;
setState(CONNECTING);
//connect