Skip to content

Commit

Permalink
Merge pull request #185 from JPery/MultipleInstancesFix
Browse files Browse the repository at this point in the history
Fixed bug where multiple instances of dejavu where not working
  • Loading branch information
worldveil committed May 27, 2019
2 parents 999c66a + b72921e commit d2b8761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dejavu/database_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ class Cursor(object):
cur.execute(query)
```
"""
_cache = Queue.Queue(maxsize=5)

def __init__(self, cursor_type=mysql.cursors.Cursor, **options):
super(Cursor, self).__init__()

self._cache = Queue.Queue(maxsize=5)
try:
conn = self._cache.get_nowait()
except Queue.Empty:
Expand Down

0 comments on commit d2b8761

Please sign in to comment.