[rygel/wip/basic-management: 5/21] BasicManagement NSLookup: use ExecutionState for canceling



commit 97eae5e9214ef4378f42665fef4fd92e03aee12e
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date:   Fri May 31 12:59:04 2013 +0300

    BasicManagement NSLookup: use ExecutionState for canceling

 src/librygel-core/rygel-bm-test.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/librygel-core/rygel-bm-test.vala b/src/librygel-core/rygel-bm-test.vala
index b174788..3b7f45b 100644
--- a/src/librygel-core/rygel-bm-test.vala
+++ b/src/librygel-core/rygel-bm-test.vala
@@ -53,7 +53,6 @@ internal abstract class Rygel.BMTest : Object {
     private int std_err;
     private Pid child_pid;
     private SourceFunc async_callback;
-    private bool canceled;
     private uint iteration;
 
     /* These virtual/abstract functions will be called from execute():
@@ -165,7 +164,6 @@ internal abstract class Rygel.BMTest : Object {
             throw new BMTestError.NOT_POSSIBLE ("Already executing");
 
         execution_state = ExecutionState.RUNNING;
-        canceled = false;
         iteration = 0;
         async_callback = execute.callback;
 
@@ -181,6 +179,6 @@ internal abstract class Rygel.BMTest : Object {
 
         Posix.killpg (child_pid, Posix.SIGTERM);
 
-        canceled = true;
+        execution_state = ExecutionState.CANCELED;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]