浏览代码

Minor tweak to close off clients silently

Sajin 1 年之前
父节点
当前提交
409b6ceeb6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Client/clients.cpp

+ 2 - 2
Client/clients.cpp

@@ -604,9 +604,9 @@ void Client::sendMessageBundle()
                 delete(storage_sock);
             }
             else {
+                printf("Client: boost async_write failed for sending message bundle\n");
                 printf("Error %s\n", ecc.message().c_str());
             }
-            printf("Client: boost async_write failed for sending message bundle\n");
             return;
         }
 
@@ -872,9 +872,9 @@ void Client::epoch_process() {
                         delete(storage_sock);
                     }
                     else {
+                        printf("Client: boost async_read failed for recieving msg_bundle\n");
                         printf("Error %s\n", ecc.message().c_str());
                     }
-                    printf("Client: boost async_read failed for recieving msg_bundle\n");
                     return;
                 }