EvoluxBR / greenswitch

Battle proven FreeSWITCH Event Socket Protocol client implementation with Gevent
Other
126 stars 50 forks source link

The greenlets added to "self._commands_sent" are not released on the disconnect event #47

Closed evangilo closed 5 years ago

evangilo commented 5 years ago

When the FreeSWITCH send a disconnect event at the same time that is called the myevents method the current OutboundSession will stay stuck. In the on_disconnect method is necessary to release the greenlets added to self._commands_sent variable