From 6ced5dbd1a4603b0f9c63e79d9da8b30c76b3805 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 7 Oct 2014 10:10:27 +0100 Subject: [PATCH] Disable sdremote by default, and improve flow control. It was intended to disable sdremote by default when it exited experimental mode. This reverts commit 576943b9bf7506829de97d2194c4bee35a485436. Change-Id: I2c1b5443e334021bd9574316167f48b1af6200e5 --- officecfg/registry/schema/org/openoffice/Office/Impress.xcs | 2 +- sd/source/ui/remotecontrol/Server.cxx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/officecfg/registry/schema/org/openoffice/Office/Impress.xcs b/officecfg/registry/schema/org/openoffice/Office/Impress.xcs index 56116e3102bd..3c89f9fc9984 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Impress.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Impress.xcs @@ -619,7 +619,7 @@ Indicates whether to enable the Impress remote controller. - true + false diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx index 5ec118400d2c..7404bbddcfbf 100644 --- a/sd/source/ui/remotecontrol/Server.cxx +++ b/sd/source/ui/remotecontrol/Server.cxx @@ -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;