diff --git a/src/plivo/core/freeswitch/outboundsocket.py b/src/plivo/core/freeswitch/outboundsocket.py index ef6faefc..255f3b0f 100644 --- a/src/plivo/core/freeswitch/outboundsocket.py +++ b/src/plivo/core/freeswitch/outboundsocket.py @@ -111,10 +111,10 @@ def __init__(self, address, handle_class, filter="ALL"): self._filter = filter #Define the Class that will handle process when receiving message self._requestClass = handle_class - StreamServer.__init__(self, address, self.do_handle, + StreamServer.__init__(self, address, self.__handle, backlog=BACKLOG, spawn=gevent.spawn_raw) - def do_handle(self, socket, address): + def __handle(self, socket, address): try: self.handle_request(socket, address) finally: