Explorar o código

Stop sharing during restart

Bryan Drewery %!s(int64=10) %!d(string=hai) anos
pai
achega
046b8903d8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/misc.cc

+ 3 - 0
src/misc.cc

@@ -789,6 +789,9 @@ restart(int idx)
     botnet_send_bye(reason);
   }
 
+  /* Stop sharing to prevent writing LASTON to lostdcc() DCC_BOT sockets. */
+  noshare = 1;
+
   /* kill all connections except STDOUT/server */
   for (fd = 0; fd < dcc_total; fd++) {
     if (dcc[fd].type && dcc[fd].type != &SERVER_SOCKET && dcc[fd].sock != STDOUT) {