[rygel] core: Delay handling of SoupMessage's signals
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Delay handling of SoupMessage's signals
- Date: Tue, 27 Sep 2011 13:03:19 +0000 (UTC)
commit f6f44ffafc6c190eb12bbe813ea4910583862d1f
Author: Jens Georg <mail jensge org>
Date: Tue Sep 27 14:42:37 2011 +0200
core: Delay handling of SoupMessage's signals
Only connect to the relevant signals just before unpause_message
happens. Otherwise we might get stray signals when one of the
preconditions checked fails.
src/rygel/rygel-http-post.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-http-post.vala b/src/rygel/rygel-http-post.vala
index c9a5b75..c1bad97 100644
--- a/src/rygel/rygel-http-post.vala
+++ b/src/rygel/rygel-http-post.vala
@@ -58,9 +58,6 @@ internal class Rygel.HTTPPost : HTTPRequest {
}
private async void handle_real () throws Error {
- this.msg.got_chunk.connect (this.on_got_chunk);
- this.msg.got_body.connect (this.on_got_body);
-
if (!this.item.place_holder) {
var msg = _("Pushing data to non-empty item '%s' not allowed");
@@ -83,6 +80,9 @@ internal class Rygel.HTTPPost : HTTPRequest {
Priority.LOW,
this.cancellable);
+ this.msg.got_chunk.connect (this.on_got_chunk);
+ this.msg.got_body.connect (this.on_got_body);
+
this.server.unpause_message (this.msg);
this.handle_continue = this.handle_real.callback;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]