Parcourir la source

state error while disconnected

master
robin il y a 10 ans
Parent
révision
5763d68675
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      libptsocket/ptsocket.cpp

+ 1
- 1
libptsocket/ptsocket.cpp Voir le fichier

@@ -188,7 +188,7 @@ void PTSocket::m_socketError(QAbstractSocket::SocketError)
188 188
 
189 189
 void PTSocket::setState(PTSocket::State s)
190 190
 {
191
-    if(s == m_state)
191
+    if(s == m_state || (s == Error && m_state == Disconnected))
192 192
         return;
193 193
     if(s == Error)
194 194
         abort();

Chargement…
Annuler
Enregistrer