diff --git a/client/modules/Streamer.py b/client/modules/Streamer.py index b57d987..bd655da 100644 --- a/client/modules/Streamer.py +++ b/client/modules/Streamer.py @@ -13,6 +13,13 @@ def __init__(self, host, port, recorder): self.server_address = (host, port) self.camera = recorder + ''' + Finalizer which is called after all the references to the object + have been deleted. + ''' + def __del__(self): + self.sock.close() + ''' Gets a frame from camera and sends it to the server via UDP. '''