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

dtls-sock: check msg_try_receive return value

This commit is contained in:
Sören Tempel 2019-12-09 14:17:09 +01:00
parent 7b13781cd2
commit ab4e5df473

View File

@ -108,8 +108,7 @@ void *dtls_server_wrapper(void *arg)
}
while (active) {
msg_try_receive(&msg);
if (msg.type == DTLS_STOP_SERVER_MSG) {
if ((msg_try_receive(&msg) == 1) && (msg.type == DTLS_STOP_SERVER_MSG)) {
active = false;
}
else {