Skip to content

Commit e535d43

Browse files
Sleep less (#1777)
Found by: michaelortmann Patch by: michaelortmann
1 parent 92b318d commit e535d43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mod/irc.mod/msgcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ static int msg_die(char *nick, char *host, struct userrec *u, char *par)
915915
else
916916
nuke_server(par);
917917
write_userfile(-1);
918-
sleep(1); /* Give the server time to understand */
918+
sleep(1); /* Give the server time to understand. 1s has proven more than enough. */
919919
egg_snprintf(s, sizeof s, "DEAD BY REQUEST OF %s!%s", nick, host);
920920
fatal(s, 0);
921921
return 1;

src/mod/server.mod/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ static void server_die()
20792079
dprintf(-serv, "%s\n", msg);
20802080
if (raw_log)
20812081
putlog(LOG_SRVOUT, "*", "[->] %s", msg);
2082-
sleep(3); /* Give the server time to understand */
2082+
sleep(1); /* Give the server time to understand. 1s should be enough. */
20832083
}
20842084
nuke_server(NULL);
20852085
}

0 commit comments

Comments
 (0)