X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2Fprops.cxx;h=58905e2f30a8a1c953cf05e017cac6d0239e0de4;hb=b0dcb657e77579ecc79798ff365737095f96f9e2;hp=5e88933d18e2e541a2bee356f0171c88ae7f1b55;hpb=076bbb84871952b7dfc791440d710748736389cb;p=flightgear.git diff --git a/src/Network/props.cxx b/src/Network/props.cxx index 5e88933d1..58905e2f3 100644 --- a/src/Network/props.cxx +++ b/src/Network/props.cxx @@ -594,6 +594,8 @@ FGProps::open() return false; } + poller.addChannel(this); + SG_LOG( SG_IO, SG_INFO, "Props server started on port " << port ); set_enabled( true ); @@ -616,7 +618,7 @@ FGProps::close() bool FGProps::process() { - simgear::NetChannel::poll(); + poller.poll(); return true; } @@ -632,4 +634,5 @@ FGProps::handleAccept() << addr.getHost() << ":" << addr.getPort() ); PropsChannel* channel = new PropsChannel(); channel->setHandle( handle ); + poller.addChannel( channel ); }