config: set default before reloading from profile

This commit is contained in:
Stéphane L 2019-04-22 13:12:01 +02:00
parent f022e09938
commit 8b79bfab4f

View File

@ -207,6 +207,7 @@ void Config::OnFrontendEvent(enum obs_frontend_event event, void* param)
auto server = WSServer::Current();
server->stop();
config->SetDefaults();
config->Load();
if (config->ServerEnabled) {
server->start(config->ServerPort);