Browse Source

state error while disconnected (fix?)

master
robin 11 years ago
parent
commit
fa2ec53862
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      libptsocket/ptsocket.cpp

+ 1
- 1
libptsocket/ptsocket.cpp View File

@@ -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 || (s == Error && m_state == Disconnected))
191
+    if(s == m_state || (s == Error && (m_state == Disconnected || m_state == Disconnecting)))
192 192
         return;
193 193
     if(s == Error)
194 194
         abort();

Loading…
Cancel
Save