Skip to content

Commit

Permalink
ws: disable/clear video if websocket is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 9, 2022
1 parent 90c3d5b commit 245b48c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ static void close_handler(int err, void *arg)
sl_ws_send_event(wsc->sess, json);
json = mem_deref(json);
}

vidmix_disp_enable(wsc->sess->id, false);
wsc->sess->pc = mem_deref(wsc->sess->pc);
}

Expand Down

0 comments on commit 245b48c

Please sign in to comment.