[Code] WebInterfaceList Global to Singleton Cleanup (#4935)

This commit is contained in:
Alex King authored and GitHub committed 2025-06-25 14:49:32 -05:00
1 parent 967a13e692
commit c99bda3f47
4 files changed
+9 -8

No files matched your search

+2 -3
View File
@@ -100,7 +100,6 @@ uint32 numclients = 0;
uint32 numzones = 0;
const WorldConfig *Config;
WorldContentService content_service;
WebInterfaceList web_interface;
PlayerEventLogs player_event_logs;
void CatchSignal(int sig_num);
@@ -320,7 +319,7 @@ int main(int argc, char **argv)
connection->GetUUID()
);
web_interface.AddConnection(connection);
WebInterfaceList::Instance()->AddConnection(connection);
}
);
@@ -331,7 +330,7 @@ int main(int argc, char **argv)
connection->GetUUID()
);
web_interface.RemoveConnection(connection);
WebInterfaceList::Instance()->RemoveConnection(connection);
}
);