rajrakeshdr / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

All lock uses should be in try...finally #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The lock.acquire calls and the code in between should be in a try block.
The lock.release calls should be in finally.

This way the lock will be released if the code in between crashes.

Original issue reported on code.google.com by lobais on 16 Aug 2007 at 9:30

GoogleCodeExporter commented 9 years ago
Fixed in trunk

Original comment by lobais on 23 Aug 2007 at 3:34