diff --git a/src/main.cpp b/src/main.cpp index 8579592..e8b63e0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,10 @@ int main(int argc, char* argv[]) } server = new Server(settings.port, settings.ws_port); - QObject::connect(server, &Server::reloadRequest, advertiser, &Advertiser::reloadRequested); + + if (advertiser != nullptr) { + QObject::connect(server, &Server::reloadRequest, advertiser, &Advertiser::reloadRequested); + } server->start(); } } else {