Skip to content

Commit 837d4bd

Browse files
author
Richard Jones
committed
missed a db close
1 parent cc649b7 commit 837d4bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roundup/cgi/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.38 2002-09-18 00:01:28 richard Exp $
1+
# $Id: client.py,v 1.39 2002-09-18 06:33:06 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -492,6 +492,8 @@ def opendb(self, user):
492492
'''
493493
# open the db if the user has changed
494494
if not hasattr(self, 'db') or user != self.db.journaltag:
495+
if hasattr(self, 'db'):
496+
self.db.close()
495497
self.db = self.instance.open(user)
496498

497499
#

0 commit comments

Comments
 (0)