Permalink
Browse files

fixed bug when closing mongodb connection

  • Loading branch information...
1 parent e68b136 commit ee466d72907f48fb2868655ae227a32e0513bb37 Felix Richter committed Jan 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 genericore/mongo_connect.py
@@ -59,7 +59,7 @@ def __init__(self,MODULE_NAME='mongo_connect',conf=None):
self.load_conf(conf)
def close_connection(self):
- self.conn.close()
+ self.conn.disconnect()
def populate_parser(self,parser):
parser.add_argument('--mongohost',metavar='HOST',help='Mongodb Host')

0 comments on commit ee466d7

Please sign in to comment.