Jelajahi Sumber

Debug armitage

Mihawk 12 tahun lalu
induk
melakukan
2519333afe
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      SshClient.cpp

+ 2 - 0
SshClient.cpp

@@ -304,6 +304,7 @@ void SshClient::timerEvent(QTimerEvent *e)
 {
   if(e->timerId() == myConnectionTimerID)
   {
+    myApp->print("Timedout while trying to connect to central...\n");
     disconnectFromHost();
     emit error(ConnectionTimedOutError);
     return;
@@ -311,6 +312,7 @@ void SshClient::timerEvent(QTimerEvent *e)
 
   if(e->timerId() == myPingTimerID)
   {
+    myApp->print("Ping with no pong! Disconnecting from central...\n");
     disconnectFromHost();
     emit error(ConnectionTimedOutError);
     return;