Browse Source

auto reconnect

master
Robin Thoni 10 years ago
parent
commit
57271ff5c9
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      daemon/daemon/mainclass.cpp

+ 2
- 0
daemon/daemon/mainclass.cpp View File

@@ -249,6 +249,8 @@ void MainClass::netsoulStateChanged(NetSoul::State s)
249 249
 	resp << s;
250 250
 	foreach(PTSocket* sock, m_nsEvents)
251 251
 		sock->send(NSStatus, respData);
252
+	if(s == NetSoul::NetworkError || s == NetSoul::ProtocolError)
253
+		QTimer::singleShot(1000, m_ns, SLOT(login()));
252 254
 }
253 255
 
254 256
 void MainClass::netsoulNewMessage(NetSoul::Message msg)

Loading…
Cancel
Save