1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/net/telnet: properly detect disconnect

This commit is contained in:
Benjamin Valentin 2024-02-02 11:48:54 +01:00
parent 816aafdb5a
commit 550d93f873

View File

@ -227,7 +227,7 @@ static void *telnet_thread(void *arg)
continue;
}
if (res < 0) {
if (res <= 0) {
break;
}