diff options
Diffstat (limited to 'src/engine/HTTPEngineReceiver.cpp')
-rw-r--r-- | src/engine/HTTPEngineReceiver.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/engine/HTTPEngineReceiver.cpp b/src/engine/HTTPEngineReceiver.cpp index 9ee54319..00d6a629 100644 --- a/src/engine/HTTPEngineReceiver.cpp +++ b/src/engine/HTTPEngineReceiver.cpp @@ -64,13 +64,15 @@ HTTPEngineReceiver::HTTPEngineReceiver(Engine& engine, uint16_t port) engine.world()->load_module("ingen_serialisation"); Thread::set_name("HTTPEngineReceiver"); + start(); + _receive_thread->set_name("HTTPEngineReceiver Listener"); + _receive_thread->start(); } HTTPEngineReceiver::~HTTPEngineReceiver() { - deactivate(); - stop(); _receive_thread->stop(); + stop(); delete _receive_thread; if (_server) { @@ -80,21 +82,6 @@ HTTPEngineReceiver::~HTTPEngineReceiver() } void -HTTPEngineReceiver::activate_source() -{ - EventSource::activate_source(); - _receive_thread->set_name("HTTPEngineReceiver Listener"); - _receive_thread->start(); -} - -void -HTTPEngineReceiver::deactivate_source() -{ - _receive_thread->stop(); - EventSource::deactivate_source(); -} - -void HTTPEngineReceiver::message_callback(SoupServer* server, SoupMessage* msg, const char* path_str, |