From 659e66e3d195ceb6cc68e9875b4205e9c5ade831 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Wed, 29 Jan 2025 20:45:55 +1100 Subject: [PATCH] * reset push_failures on successfully recv --- examples/simple_room_server/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/simple_room_server/main.cpp b/examples/simple_room_server/main.cpp index cfcc2365..809c4db9 100644 --- a/examples/simple_room_server/main.cpp +++ b/examples/simple_room_server/main.cpp @@ -354,6 +354,7 @@ protected: uint32_t now = getRTCClock()->getCurrentTime(); client->last_activity = now; + client->push_failures = 0; // reset so push can resume (if prev failed) // len can be > original length, but 'text' will be padded with zeroes data[len] = 0; // need to make a C string again, with null terminator