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:
parent
816aafdb5a
commit
550d93f873
@ -227,7 +227,7 @@ static void *telnet_thread(void *arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (res < 0) {
|
||||
if (res <= 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user