summaryrefslogtreecommitdiff
path: root/server/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r--server/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index 214b6b5..5ca4422 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -75,6 +75,8 @@ void sig_handler(int sig)
}
}
+boost::asio::io_service io_service_server;
+
extern "C" int main(int argc, char *argv[])
{
//handle signals
@@ -248,7 +250,6 @@ extern "C" int main(int argc, char *argv[])
{
//TODO: fork here
}
- boost::asio::io_service io_service_server;
try{
//TODO: server options ip address, interface name
serv = new server(io_service_server, runtime_config, clients, downloads, runtime_config.config_file.get<int>("server.port", 6613));