(main): Don't bother to close socket before exit().
This commit is contained in:
parent
43d66c7d87
commit
2444a5c63a
1 changed files with 2 additions and 7 deletions
|
@ -208,14 +208,9 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
sock = tcp_connect(host, port);
|
sock = tcp_connect(host, port);
|
||||||
|
|
||||||
if (!login(sock, uname, country, passwd, send_kill, utf8)) {
|
if (!login(sock, uname, country, passwd, send_kill, utf8))
|
||||||
#ifdef _WIN32
|
|
||||||
closesocket(sock);
|
|
||||||
#else
|
|
||||||
close(sock);
|
|
||||||
#endif
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
|
||||||
ioq_init(&server, 2048);
|
ioq_init(&server, 2048);
|
||||||
io_init();
|
io_init();
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue