summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/Communicator.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-11-23 17:59:41 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-11-24 15:01:44 +0100
commitc50fdef7cf89e8c59db5a8539bbe51c3430d9271 (patch)
treedc2897a7ea2f27ad335cb07ad11b7d950b4fa089 /sd/source/ui/remotecontrol/Communicator.cxx
parentcbc5fc321fefd2ce864276fab5e66eb2465e3e94 (diff)
cleanup - no need for salhelper::Thread mostly
Change-Id: I27461e094141efd364a2c21da75151da490da2f3
Diffstat (limited to 'sd/source/ui/remotecontrol/Communicator.cxx')
-rw-r--r--sd/source/ui/remotecontrol/Communicator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx
index 0d1beb62d1f3..f567b106ff8d 100644
--- a/sd/source/ui/remotecontrol/Communicator.cxx
+++ b/sd/source/ui/remotecontrol/Communicator.cxx
@@ -12,7 +12,6 @@
#include <comphelper/processfactory.hxx>
#include "Communicator.hxx"
-#include "ImagePreparer.hxx"
#include "Listener.hxx"
#include "Receiver.hxx"
#include "RemoteServer.hxx"
@@ -38,7 +37,7 @@ Communicator::~Communicator()
void Communicator::execute()
{
pTransmitter = new Transmitter( mpSocket );
- pTransmitter->launch();
+ pTransmitter->create();
pTransmitter->addMessage( "LO_SERVER_SERVER_PAIRED\n\n",
Transmitter::PRIORITY_HIGH );
@@ -99,8 +98,9 @@ void Communicator::execute()
void Communicator::informListenerDestroyed()
{
- pTransmitter->addMessage( "slideshow_finished\n\n",
- Transmitter::PRIORITY_HIGH );
+ if ( pTransmitter )
+ pTransmitter->addMessage( "slideshow_finished\n\n",
+ Transmitter::PRIORITY_HIGH );
mListener.clear();
}