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
 	resp << s;
249
 	resp << s;
250
 	foreach(PTSocket* sock, m_nsEvents)
250
 	foreach(PTSocket* sock, m_nsEvents)
251
 		sock->send(NSStatus, respData);
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
 void MainClass::netsoulNewMessage(NetSoul::Message msg)
256
 void MainClass::netsoulNewMessage(NetSoul::Message msg)

Loading…
Cancel
Save