Commit 7f5704d9 authored by Nils Goroll's avatar Nils Goroll

remove needless additional invalidation of the file descriptor - VTCP_close already does this

parent 170d0d64
......@@ -263,10 +263,8 @@ cmd_server(CMD_ARGS)
(void)pthread_cancel(s->tp);
server_wait(s);
}
if (s->sock >= 0) {
if (s->sock >= 0)
VTCP_close(&s->sock);
s->sock = -1;
}
server_delete(s);
}
return;
......@@ -312,10 +310,8 @@ cmd_server(CMD_ARGS)
continue;
}
if (!strcmp(*av, "-listen")) {
if (s->sock >= 0) {
if (s->sock >= 0)
VTCP_close(&s->sock);
s->sock = -1;
}
bprintf(s->listen, "%s", av[1]);
AZ(VSS_parse(s->listen, &s->addr, &s->port));
av++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment