File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -825,14 +825,21 @@ static void mumble_client_free(MumbleClient *client) {
825
825
}
826
826
827
827
static void mumble_client_cleanup (MumbleClient * client ) {
828
+ if (uv_is_active ((uv_handle_t * ) & client -> socket_udp )) {
829
+ uv_udp_recv_stop (& client -> socket_udp );
830
+ }
828
831
uv_close ((uv_handle_t * ) & client -> socket_udp , NULL );
832
+ if (uv_is_active ((uv_handle_t * ) & client -> ssl_poll )) {
833
+ uv_poll_stop (& client -> ssl_poll );
834
+ }
829
835
uv_close ((uv_handle_t * ) & client -> socket_tcp , NULL );
830
836
if (uv_is_active ((uv_handle_t * ) & client -> ping_timer )) {
831
837
uv_timer_stop (& client -> ping_timer );
832
838
}
833
839
if (uv_is_active ((uv_handle_t * ) & client -> audio_timer )) {
834
840
uv_timer_stop (& client -> audio_timer );
835
841
}
842
+ uv_cancel ((uv_req_t * )& client -> tcp_connect_req );
836
843
837
844
LinkNode * current = client -> stream_list ;
838
845
You can’t perform that action at this time.
0 commit comments