mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
base: Fix error to save configuration at obs_module_unload
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`.
This commit is contained in:
parent
132d4bafdd
commit
3cd8163945
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user