Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
belle-sip
Commits
e5e0590d
Commit
e5e0590d
authored
Feb 19, 2015
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash
parent
03889270
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/http-provider.c
src/http-provider.c
+3
-0
No files found.
src/http-provider.c
View file @
e5e0590d
...
...
@@ -432,9 +432,12 @@ void belle_http_provider_cancel_request(belle_http_provider_t *obj, belle_http_r
if
(
req
->
channel
){
// Keep the list of the outgoing messages of the channel...
outgoing_messages
=
belle_sip_list_copy_with_data
(
req
->
channel
->
outgoing_messages
,(
void
*
(
*
)(
void
*
))
belle_sip_object_ref
);
/*protect the channel from being destroyed before removing it (removing it will unref it)*/
belle_sip_object_ref
(
req
->
channel
);
provider_remove_channel
(
obj
,
req
->
channel
);
// ... close the channel...
belle_sip_channel_force_close
(
req
->
channel
);
belle_sip_object_unref
(
req
->
channel
);
// ... and reenqueue the previously queued outgoing messages into a new channel
belle_sip_list_for_each2
(
outgoing_messages
,(
void
(
*
)(
void
*
,
void
*
))
reenqueue_request
,
obj
);
belle_sip_list_free_with_data
(
outgoing_messages
,
belle_sip_object_unref
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment