Commits

Marcin Lulek  committed 885116a

garden

  • Participants
  • Parent commits 297b6ed

Comments (0)

Files changed (1)

File gevent_cometd/__init__.py

 import pkg_resources
 
 try:
-    from gevent.lock import Rlock
+    import gevent.lock as g_lock
 except ImportError as e:
-    from gevent.coros import Rlock
+    import gevent.coros as g_lock
 
 # not used yet - if ever
 #import redis
          'total_unique_messages':0,
          'started_on':datetime.datetime.utcnow()}
 
-users_lock = RLock()
-channels_lock = RLock()
+users_lock = g_lock.RLock()
+channels_lock = g_lock.RLock()
 channels = {}
 users = {}
 connections = {}