commit d232acdd309a71bd6f7bf92edea2573ff289c77b
parent bf3edd3681ab0feb3f56b7dc5e5db40ec0bd38d5
Author: Jacob R. Edwards <n/a>
Date: Tue, 11 Oct 2022 15:05:27 -0700
Fix poll timeout bug
The server's timeout variable was unsigned, yet was set to INFTIM
(-1).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aps/aps.h b/aps/aps.h
@@ -12,6 +12,7 @@ struct aps {
int close;
int loglevel;
int nfds;
+ int timeout;
struct apcon *con;
struct client clients[OPEN_MAX];
struct command *coms;
@@ -19,7 +20,6 @@ struct aps {
struct player *player;
struct pollfd pfds[OPEN_MAX];
unsigned int ncoms;
- unsigned int timeout;
};
struct aps *aps_open(char *, char **);