Skip to content

Commit

Permalink
base: Fix error to save configuration at obs_module_unload
Browse files Browse the repository at this point in the history
When `obs_module_unload` is called, the frontend API is no longer
available so that `_config->Save()` is failing with error messages.
Since the configuration is saved from the OK or the Apply button on the
dialog, it is not necessary to save it again at `obs_module_unload`.
  • Loading branch information
norihiro authored and tt2468 committed Aug 16, 2023
1 parent 132d4ba commit 3cd8163
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/obs-websocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ void obs_module_unload(void)
// Destroy the event handler
_eventHandler.reset();

// Save and destroy the config manager
_config->Save();
// Destroy the config manager
_config.reset();

// Destroy the cpu stats
Expand Down

0 comments on commit 3cd8163

Please sign in to comment.