Skip to content

Commit

Permalink
Server: Stop WSServer on OBS exit
Browse files Browse the repository at this point in the history
This should fix issues with race conditions and crashes on OBS exit.
  • Loading branch information
eric committed Dec 29, 2020
1 parent 7ae016b commit 9275f7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WSEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ void WSEvents::FrontendEventHandler(enum obs_frontend_event event, void* private
case OBS_FRONTEND_EVENT_EXIT:
owner->unhookTransitionPlaybackEvents();
owner->OnExit();
owner->_srv->stop();
break;
}
}
Expand Down

0 comments on commit 9275f7c

Please sign in to comment.