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
 
188
 
189
 void PTSocket::setState(PTSocket::State s)
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
         return;
192
         return;
193
     if(s == Error)
193
     if(s == Error)
194
         abort();
194
         abort();

Loading…
Cancel
Save