瀏覽代碼

state error while disconnected (fix?)

master
robin 11 年之前
父節點
當前提交
fa2ec53862
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      libptsocket/ptsocket.cpp

+ 1
- 1
libptsocket/ptsocket.cpp 查看文件

@@ -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…
取消
儲存