Skip to content

Commit

Permalink
sys/net/telnet: properly detect disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 2, 2024
1 parent 7753d89 commit c5c7fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/application_layer/telnet/telnet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static void *telnet_thread(void *arg)
continue;
}

if (res < 0) {
if (res <= 0) {
break;
}

Expand Down

0 comments on commit c5c7fab

Please sign in to comment.