IRC needs to kill network thread on quit

This commit is contained in:
Kevin Lange 2016-09-10 21:01:54 +09:00
parent 6e9753513c
commit ddb70f5968

View File

@ -406,6 +406,7 @@ void do_thing(char * thing) {
endwin();
fprintf(sock,"QUIT :%s\r\n", m ? m : "http://toaruos.org/");
fflush(sock);
pthread_kill(read_thread, SIGQUIT);
exit(0);
} else if (!strcmp(thing, "/part") || strstr(thing,"/part ") == thing) {
char * m = strstr(thing, " "); if (m) m++;