[rygel/rygel-0-22] Handle repitition parameter in NSLookup action correctly



commit ec720ca621294bba52a03a497a8655612c9c9aef
Author: rygelgit <p balasubramanian cablelabs com>
Date:   Tue Jul 8 21:55:22 2014 -0700

    Handle repitition parameter in NSLookup action correctly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732935

 .../rygel-basic-management-test-nslookup.vala      |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/librygel-core/rygel-basic-management-test-nslookup.vala 
b/src/librygel-core/rygel-basic-management-test-nslookup.vala
index c74ac83..aa6edb8 100644
--- a/src/librygel-core/rygel-basic-management-test-nslookup.vala
+++ b/src/librygel-core/rygel-basic-management-test-nslookup.vala
@@ -167,16 +167,18 @@ internal class Rygel.BasicManagementTestNSLookup : BasicManagementTest {
         default = DEFAULT_INTERVAL_TIMEOUT;
     }
 
+    private uint _repetitions;
     public uint repetitions {
         construct {
-            this.iterations = value;
-            if (this.iterations == 0) {
-                this.iterations = DEFAULT_REPETITIONS;
+            this.iterations = 1;
+            this._repetitions = value;
+            if (this._repetitions == 0) {
+                this._repetitions = DEFAULT_REPETITIONS;
             }
         }
 
         private get {
-            return this.iterations;
+            return this._repetitions;
         }
         default = DEFAULT_REPETITIONS;
     }
@@ -217,6 +219,7 @@ internal class Rygel.BasicManagementTestNSLookup : BasicManagementTest {
 
         this.command = { "nslookup",
                          "-timeout=%u".printf (this.interval_time_out/1000),
+                         "-retry=%u".printf (this.repetitions),
                          host_name };
         if (name_server != null && name_server.length > 0) {
             this.command += name_server;


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