mirror of https://github.com/martanne/abduco
Correct EOF handling on client stdin
Previously we would end in an infinite loop which might be the cause of #15.
This commit is contained in:
parent
315338a572
commit
fdbda93131
3
client.c
3
client.c
|
|
@ -129,6 +129,9 @@ static int client_mainloop(void) {
|
||||||
} else if (!(client.flags & CLIENT_READONLY)) {
|
} else if (!(client.flags & CLIENT_READONLY)) {
|
||||||
client_send_packet(&pkt);
|
client_send_packet(&pkt);
|
||||||
}
|
}
|
||||||
|
} else if (len == 0) {
|
||||||
|
debug("client-stdin: EOF\n");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue