Disable sdremote by default, and improve flow control.

It was intended to disable sdremote by default when it exited
experimental mode.

This reverts commit 576943b9bf.

Change-Id: I2c1b5443e334021bd9574316167f48b1af6200e5
This commit is contained in:
Michael Meeks
2014-10-07 10:10:27 +01:00
parent 5b0e6aea60
commit 6ced5dbd1a
2 changed files with 6 additions and 2 deletions

View File

@@ -619,7 +619,7 @@
<desc>Indicates whether to enable the Impress remote controller.</desc>
<label>Enable remote control</label>
</info>
<value>true</value>
<value>false</value>
</prop>
<prop oor:name="EnablePresenterScreen" oor:type="xs:boolean" oor:nillable="false">
<info>

View File

@@ -117,7 +117,11 @@ void RemoteServer::execute()
{
OString aName( aLine );
if ( ! pSocket->readLine( aLine ) ) delete pSocket;
if ( ! pSocket->readLine( aLine ) )
{
delete pSocket;
continue;
}
OString aPin( aLine );
SocketAddr aClientAddr;