This commit is contained in:
Ylva Selling
2022-11-30 12:12:18 -05:00
parent 249bc355f3
commit ee22c99cec
2 changed files with 3 additions and 11 deletions

View File

@@ -113,10 +113,7 @@ void ServerModule::internalInitialize(const ghoul::Dictionary& configuration) {
std::unique_ptr<ServerInterface> serverInterface =
ServerInterface::createFromDictionary(interfaceDictionary);
//if (global::windowDelegate->isMaster()) {
serverInterface->initialize();
//}
serverInterface->initialize();
_interfaceOwner.addPropertySubOwner(serverInterface.get());
@@ -132,10 +129,6 @@ void ServerModule::internalInitialize(const ghoul::Dictionary& configuration) {
}
void ServerModule::preSync() {
//if (!global::windowDelegate->isMaster()) {
// return;
//}
// Set up new connections.
for (std::unique_ptr<ServerInterface>& serverInterface : _interfaces) {
if (!serverInterface->isEnabled()) {
@@ -204,9 +197,7 @@ void ServerModule::disconnectAll() {
ZoneScoped
for (std::unique_ptr<ServerInterface>& serverInterface : _interfaces) {
//if (global::windowDelegate->isMaster()) {
serverInterface->deinitialize();
//}
serverInterface->deinitialize();
}
for (ConnectionData& connectionData : _connections) {