[rygel/rygel-0-12] core: Do not crash if ImportResource is cancelled
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-12] core: Do not crash if ImportResource is cancelled
- Date: Sat, 8 Oct 2011 08:34:28 +0000 (UTC)
commit 836b1fa54b9960b73c54ff9a6dab6c0b556a9acc
Author: Jens Georg <mail jensge org>
Date: Thu Sep 29 11:38:54 2011 +0200
core: Do not crash if ImportResource is cancelled
src/rygel/rygel-import-resource.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-import-resource.vala b/src/rygel/rygel-import-resource.vala
index eb195e0..dd28a70 100644
--- a/src/rygel/rygel-import-resource.vala
+++ b/src/rygel/rygel-import-resource.vala
@@ -264,7 +264,7 @@ internal class Rygel.ImportResource : GLib.Object, Rygel.StateMachine {
}
private void finished_cb (Message message) {
- if (this.status != TransferStatus.ERROR) {
+ if (this.status == TransferStatus.IN_PROGRESS) {
if (!(message.status_code >= 200 && message.status_code <= 299)) {
this.status = TransferStatus.ERROR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]