[rygel] core: Don't push data after HTTP response is cancelled
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Don't push data after HTTP response is cancelled
- Date: Tue, 27 Jul 2010 16:35:43 +0000 (UTC)
commit 7027c9cffa9d7f4ba39be8a606082a7da729908b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jul 27 19:05:20 2010 +0300
core: Don't push data after HTTP response is cancelled
src/rygel/rygel-live-response.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-live-response.vala b/src/rygel/rygel-live-response.vala
index cfb8832..b6ce55d 100644
--- a/src/rygel/rygel-live-response.vala
+++ b/src/rygel/rygel-live-response.vala
@@ -165,6 +165,10 @@ internal class Rygel.LiveResponse : Rygel.HTTPResponse {
Pad pad) {
Idle.add_full (Priority.HIGH_IDLE,
() => {
+ if (this.cancellable.is_cancelled ()) {
+ return false;
+ }
+
this.push_data (buffer.data, buffer.size);
this.buffered++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]