summaryrefslogtreecommitdiff
path: root/realtime/rt
diff options
context:
space:
mode:
authorMichael Denkowski <mdenkows@cs.cmu.edu>2013-09-30 23:30:51 -0700
committerMichael Denkowski <mdenkows@cs.cmu.edu>2013-09-30 23:30:51 -0700
commit8eb6dc27e27d03eefdf29efad4b6092d56ad3006 (patch)
tree9d0865dc2c65682195f97f3c7d82ee0b11b70231 /realtime/rt
parentbf3b6d31e7402252188ecb814a8fcdfd755c10ac (diff)
Release lock on exception
Diffstat (limited to 'realtime/rt')
-rw-r--r--realtime/rt/decoder.py1
1 files changed, 1 insertions, 0 deletions
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))