From 73d198abfc4a75389f7ad0a59ffc8de5aba783a2 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Mon, 16 Dec 2024 21:23:06 +1100 Subject: [PATCH] Finish removal of CONN_SENDING state --- libs/connslot/connslot.h | 1 - src/mainloop.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/libs/connslot/connslot.h b/libs/connslot/connslot.h index 964a178d..f7101061 100644 --- a/libs/connslot/connslot.h +++ b/libs/connslot/connslot.h @@ -29,7 +29,6 @@ enum __attribute__((__packed__)) conn_state { CONN_EMPTY = 0, CONN_READING = 1, CONN_READY = 2, - CONN_SENDING = 3, CONN_CLOSED = 4, CONN_ERROR = 5, }; diff --git a/src/mainloop.c b/src/mainloop.c index 9cb84f86..cf6aff05 100644 --- a/src/mainloop.c +++ b/src/mainloop.c @@ -335,7 +335,6 @@ static void handle_fd (const time_t now, const struct fd_info info, struct n3n_r switch(conn->state) { case CONN_EMPTY: case CONN_READING: - case CONN_SENDING: // These states dont require us to do anything // TODO: // - handle reading/sending simultaneous? @@ -406,7 +405,6 @@ static void handle_fd (const time_t now, const struct fd_info info, struct n3n_r switch(conn->state) { case CONN_EMPTY: case CONN_READING: - case CONN_SENDING: // These states dont require us to do anything // TODO: // - handle reading/sending simultaneous?