diff options
-rw-r--r-- | FICS/ficsmain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index 4893262..ddc8b70 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -101,13 +101,13 @@ PRIVATE void main_event_loop(void) { char command_string[MAX_STRING_LENGTH]; - int current_socket; + int sockfd; while (1) { ngc2(command_string, HEARTBEATTIME); - if (process_heartbeat(¤t_socket) == COM_LOGOUT) { - process_disconnection(current_socket); - net_close_connection(current_socket); + if (process_heartbeat(&sockfd) == COM_LOGOUT) { + process_disconnection(sockfd); + net_close_connection(sockfd); } } } |