EvoluxBR / greenswitch

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

Creating the OutboundSession.raise_if_disconnected method and while_connected helper class #60

Closed evangilo closed 4 years ago

evangilo commented 4 years ago

This PR does 3 things: 1 ) during on_disconnect the _outbound_connected is updated to False 2) adds the raise_if_disconnected method, that will raise an exception if the lingering is True 3) adds the while_connected helper class