diff --git a/src/plivo/core/freeswitch/eventsocket.py b/src/plivo/core/freeswitch/eventsocket.py index 52a9e09e..7018e5f1 100644 --- a/src/plivo/core/freeswitch/eventsocket.py +++ b/src/plivo/core/freeswitch/eventsocket.py @@ -10,7 +10,10 @@ import gevent import gevent.event import gevent.socket as socket -from gevent.coros import RLock +try: + from gevent.lock import RLock +except: + from gevent.coros import RLock import gevent.pool from gevent import GreenletExit