Initial draft

This commit is contained in:
Ylva Selling
2022-11-22 10:49:58 -05:00
parent 9ae5e16b90
commit e37f3a2948
2 changed files with 27 additions and 22 deletions
+7 -7
View File
@@ -114,9 +114,9 @@ void ServerModule::internalInitialize(const ghoul::Dictionary& configuration) {
ServerInterface::createFromDictionary(interfaceDictionary);
if (global::windowDelegate->isMaster()) {
//if (global::windowDelegate->isMaster()) {
serverInterface->initialize();
}
//}
_interfaceOwner.addPropertySubOwner(serverInterface.get());
@@ -132,9 +132,9 @@ void ServerModule::internalInitialize(const ghoul::Dictionary& configuration) {
}
void ServerModule::preSync() {
if (!global::windowDelegate->isMaster()) {
return;
}
//if (!global::windowDelegate->isMaster()) {
// return;
//}
// Set up new connections.
for (std::unique_ptr<ServerInterface>& serverInterface : _interfaces) {
@@ -204,9 +204,9 @@ void ServerModule::disconnectAll() {
ZoneScoped
for (std::unique_ptr<ServerInterface>& serverInterface : _interfaces) {
if (global::windowDelegate->isMaster()) {
//if (global::windowDelegate->isMaster()) {
serverInterface->deinitialize();
}
//}
}
for (ConnectionData& connectionData : _connections) {