Kaydet (Commit) 664ceee3 authored tarafından Andrzej Hunt's avatar Andrzej Hunt

fdo#74697 Add Bluez 5 support for impress remote.

Change-Id: I32f781e4cb662653a2993803cbdc0be90f8e3d0d
Reviewed-on: https://gerrit.libreoffice.org/8821Reviewed-by: 's avatarAndrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: 's avatarAndrzej Hunt <andrzej.hunt@collabora.com>
üst 058cfa72
......@@ -61,7 +61,7 @@ sal_Int32 BufferedStreamSocket::write( const void* pBuffer, sal_uInt32 n )
void BufferedStreamSocket::close()
{
if( usingCSocket )
if( usingCSocket && mSocket != -1 )
{
#ifdef WIN32
::closesocket( mSocket );
......
......@@ -122,6 +122,8 @@ void Communicator::execute()
pTransmitter->join();
pTransmitter = NULL;
if( mpSocket )
mpSocket->close();
delete mpSocket;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment