summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/Communicator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/remotecontrol/Communicator.cxx')
-rw-r--r--sd/source/ui/remotecontrol/Communicator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx
index 908f732d0a07..e5459fb39166 100644
--- a/sd/source/ui/remotecontrol/Communicator.cxx
+++ b/sd/source/ui/remotecontrol/Communicator.cxx
@@ -34,6 +34,14 @@ Communicator::~Communicator()
{
}
+/// Close the underlying socket from another thread to force
+/// an early exit / termination
+void Communicator::forceClose()
+{
+ if( mpSocket )
+ mpSocket->close();
+}
+
// Run as a thread
void Communicator::execute()
{