Răsfoiți Sursa

Stop sharing during restart

Bryan Drewery 10 ani în urmă
părinte
comite
046b8903d8
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  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) {