Fix websocket (and timer!) bugs

This commit is contained in:
Vitaliy Filippov
2020-04-26 01:59:56 +03:00
parent 268b497c0b
commit ec4a52af48
5 changed files with 107 additions and 39 deletions
+3 -1
View File
@@ -3,11 +3,13 @@
#include <signal.h>
static osd_t *osd = NULL;
static bool force_stopping = false;
static void handle_sigint(int sig)
{
if (osd)
if (osd && !force_stopping)
{
force_stopping = true;
osd->force_stop();
return;
}