mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-22 20:00:05 +00:00
Support the monitor interface on Windows as well
This change required sacrificing both code cleanliness and the specific error reports from perror(). Those could have been kept with a portable wrapper, but that's too much work. We'll do it if unforseen errors arise.
This commit is contained in:
@@ -104,9 +104,7 @@ int main() {
|
||||
TransportManager::init();
|
||||
BuddyManager::init();
|
||||
GroupManager::init();
|
||||
#ifndef _WIN32
|
||||
Monitor::init();
|
||||
#endif
|
||||
Database::open();
|
||||
|
||||
switch (settings::EVENTMODE) {
|
||||
@@ -125,9 +123,7 @@ int main() {
|
||||
shardServer = new CNShardServer(settings::SHARDPORT);
|
||||
|
||||
shardThread = new std::thread(startShard, (CNShardServer*)shardServer);
|
||||
#ifndef _WIN32
|
||||
monitorThread = new std::thread(Monitor::start, nullptr);
|
||||
#endif
|
||||
|
||||
loginServer.start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user