[libsoup] SoupSessionAsync: don't allow restart-from-FINISHED in new_api
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupSessionAsync: don't allow restart-from-FINISHED in new_api
- Date: Mon, 10 Dec 2012 16:16:26 +0000 (UTC)
commit 596e64f858ebccb32b987bc76e3376f3bb5bcbe7
Author: Dan Winship <danw gnome org>
Date: Fri Jun 8 03:31:14 2012 -0400
SoupSessionAsync: don't allow restart-from-FINISHED in new_api
libsoup/soup-session-async.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-session-async.c b/libsoup/soup-session-async.c
index d26fbe2..99edf32 100644
--- a/libsoup/soup-session-async.c
+++ b/libsoup/soup-session-async.c
@@ -260,8 +260,10 @@ process_queue_item (SoupMessageQueueItem *item,
case SOUP_MESSAGE_FINISHING:
item->state = SOUP_MESSAGE_FINISHED;
soup_message_finished (item->msg);
- if (item->state != SOUP_MESSAGE_FINISHED)
+ if (item->state != SOUP_MESSAGE_FINISHED) {
+ g_return_if_fail (!item->new_api);
break;
+ }
soup_message_queue_item_ref (item);
soup_session_unqueue_item (session, item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]