forked from platypush/platypush
The streaming thread shouldn't fail and exit if it fails closing a client socket
This commit is contained in:
parent
09f9e974b1
commit
c12e7bab90
1 changed files with 4 additions and 1 deletions
|
@ -155,7 +155,10 @@ class CameraPiPlugin(CameraPlugin):
|
||||||
self.logger.info('Client closed connection')
|
self.logger.info('Client closed connection')
|
||||||
finally:
|
finally:
|
||||||
if sock:
|
if sock:
|
||||||
sock.close()
|
try:
|
||||||
|
sock.close()
|
||||||
|
except Exception as e:
|
||||||
|
self.logger.warning('Error while closing client socket: {}'.format(str(e)))
|
||||||
finally:
|
finally:
|
||||||
self._cleanup_stream(camera, server_socket, sock)
|
self._cleanup_stream(camera, server_socket, sock)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue