From ddbd0a5fb4a6edc6728e1ba8e9bd7c82186958ac Mon Sep 17 00:00:00 2001 From: Michael Denkowski Date: Mon, 30 Sep 2013 23:30:51 -0700 Subject: Release lock on exception --- realtime/rt/decoder.py | 1 + 1 file changed, 1 insertion(+) (limited to 'realtime') diff --git a/realtime/rt/decoder.py b/realtime/rt/decoder.py index 15f7db3f..1cee4610 100644 --- a/realtime/rt/decoder.py +++ b/realtime/rt/decoder.py @@ -63,6 +63,7 @@ class MIRADecoder(Decoder): self.decoder.stdin.write('WEIGHTS ||| {}\n'.format(w_line)) self.lock.release() except: + self.lock.release() raise Exception('Invalid weights line: {}'.format(w_line)) -- cgit v1.2.3