diff mercurial/hgweb/protocol.py @ 8109:496ae1ea4698

switch lock releasing in the core from gc to explicit
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Wed, 22 Apr 2009 02:01:22 +0200
parents f96c20e9b56a
children 46293a0c7e9f
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py	Wed Apr 22 02:01:22 2009 +0200
+++ b/mercurial/hgweb/protocol.py	Wed Apr 22 02:01:22 2009 +0200
@@ -163,7 +163,7 @@
                 req.respond(HTTP_OK, HGTYPE)
                 return '%d\n%s' % (ret, val),
             finally:
-                del lock
+                lock.release()
         except ValueError, inst:
             raise ErrorResponse(HTTP_OK, inst)
         except (OSError, IOError), inst: