16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 18:19:20 +02:00
This commit is contained in:
milek7
2018-12-20 20:47:19 +01:00
parent 35af6d48d6
commit 21fff27903
8 changed files with 59 additions and 6 deletions

View File

@@ -177,7 +177,8 @@ eu07_application::run() {
Timer::subsystem.mainloop_total.stop();
m_network->poll();
if (Global.network_conf.enabled)
m_network->poll();
}
return 0;
@@ -592,6 +593,14 @@ eu07_application::init_modes() {
}
bool eu07_application::init_network() {
if (!Global.network_conf.enabled)
return true;
m_network.emplace();
if (Global.network_conf.is_server)
m_network->create_server();
else
m_network->connect();
return true;
}