Shut down if we run out of inputs or outputs.

This commit is contained in:
Ian Gulliver
2016-02-25 16:33:58 -08:00
parent a9dc7c25db
commit 3155381678
2 changed files with 8 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ static bool receive_autodetect_parse(struct receive *receive, struct packet *pac
static void receive_del(struct receive *receive) {
fprintf(stderr, "R %s: Connection closed\n", receive->id);
peer_count_out--;
peer_count_in--;
peer_epoll_del((struct peer *) receive);
assert(!close(receive->peer.fd));
if (receive->prev) {