1
0
Fork 0

Fix compilation of UGear_telnet.

This commit is contained in:
James Turner 2013-06-09 23:47:16 +01:00
parent 6d158e886c
commit 50de7a8fbb
2 changed files with 5 additions and 3 deletions

View file

@ -194,7 +194,8 @@ UGTelnet::open()
printf("Telnet server started on port %d\n", port );
enabled = true;
poller.addChannel(this);
return true;
}
@ -214,7 +215,7 @@ UGTelnet::close()
bool
UGTelnet::process()
{
simgear::NetChannel::poll();
poller.poll();
return true;
}
@ -230,4 +231,5 @@ UGTelnet::handleAccept()
addr.getHost(), addr.getPort() );
PropsChannel* channel = new PropsChannel();
channel->setHandle( handle );
poller.addChannel(channel);
}

View file

@ -51,7 +51,7 @@ private:
*/
int port;
bool enabled;
simgear::NetChannelPoller poller;
public:
/**