Merge pull request #1431 from ryuukk/patch-1

Closed WS connection is not an error for the logger
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2021-12-21 08:47:21 +00:00
commit 84d89bc4f5
1 file changed
+1 -1
+1 -1
View File
@@ -173,7 +173,7 @@ static void mg_ws_cb(struct mg_connection *c, int ev, void *ev_data,
if (final) mg_call(c, MG_EV_WS_MSG, &m); if (final) mg_call(c, MG_EV_WS_MSG, &m);
break; break;
case WEBSOCKET_OP_CLOSE: case WEBSOCKET_OP_CLOSE:
LOG(LL_ERROR, ("%lu Got WS CLOSE", c->id)); LOG(LL_DEBUG, ("%lu Got WS CLOSE", c->id));
mg_call(c, MG_EV_WS_CTL, &m); mg_call(c, MG_EV_WS_CTL, &m);
c->is_closing = 1; c->is_closing = 1;
break; break;