From acddd0b0cf9dd70b7cbdb25cc322dc0e3a2689ee Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 12 Jun 2013 22:12:31 +0200 Subject: [PATCH] Fix JPEG-factory build --- src/Network/jpg-httpd.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Network/jpg-httpd.cxx b/src/Network/jpg-httpd.cxx index 07fa2037b..0c84f5b7d 100644 --- a/src/Network/jpg-httpd.cxx +++ b/src/Network/jpg-httpd.cxx @@ -115,8 +115,11 @@ class HttpdImageServer : private simgear::NetChannel HttpdImageChannel *hc = new HttpdImageChannel; hc->setHandle ( handle ); + + poller.addChannel( hc ); } + simgear::NetChannelPoller poller; public: HttpdImageServer ( int port ) @@ -139,9 +142,14 @@ public: return; } + poller.addChannel(this); SG_LOG(SG_IO, SG_ALERT, "HttpdImage server started on port " << port); } + void poll() + { + poller.poll(); + } }; ////////////////////////////////////////////////////////////// @@ -176,7 +184,7 @@ bool FGJpegHttpd::open() { bool FGJpegHttpd::process() { - simgear::NetChannel::poll(); + imageServer->poll(); return true; } -- 2.39.5