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 8, 2024
1 parent 5ad546a commit 49de56e
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 49de56e

Please sign in to comment.