Skip to content

Commit 3cd8163

Browse files
norihirott2468
authored andcommitted
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`.
1 parent 132d4ba commit 3cd8163

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/obs-websocket.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ void obs_module_unload(void)
125125
// Destroy the event handler
126126
_eventHandler.reset();
127127

128-
// Save and destroy the config manager
129-
_config->Save();
128+
// Destroy the config manager
130129
_config.reset();
131130

132131
// Destroy the cpu stats

0 commit comments

Comments
 (0)