mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-23 07:35:13 +03:00
KeepAlive: Better session cleanup after KeepAlive failure
This commit is contained in:
1 parent
238694fe1a
commit
60fbbd3e3b
7 files changed
+77
-24
No files matched your search
@@ -2101,7 +2101,7 @@ main(int argc, char **argv) {
|
||||
obs_ms -= result;
|
||||
}
|
||||
}
|
||||
if (ready && repeat_count) {
|
||||
if ((ready || obs_ms) && repeat_count) {
|
||||
/* Send off next request if appropriate */
|
||||
if (repeat_ms > (unsigned)result) {
|
||||
repeat_ms -= (unsigned)result;
|
||||
|
||||
Reference in new issue
Block a user