]> git.mxchange.org Git - flightgear.git/commitdiff
Fix JPEG-factory build
authorJames Turner <zakalawe@mac.com>
Wed, 12 Jun 2013 20:12:31 +0000 (22:12 +0200)
committerJames Turner <zakalawe@mac.com>
Wed, 12 Jun 2013 20:12:31 +0000 (22:12 +0200)
src/Network/jpg-httpd.cxx

index 07fa2037b4a05bdaa72f70e74aca2ef1202037b3..0c84f5b7d93ccaa863c99c7ee96ca377fe5856c0 100644 (file)
@@ -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;
 }