Diff between 5a37a85fbc4c2801811dd9c2760e38cb5a01d687 and 9acc66c6f10eed58da1da70d05923e25f8b00d32

Changed Files

File Additions Deletions Status
test/test-mesh +4 -4 modified

Full Patch

diff --git a/test/test-mesh b/test/test-mesh
index c075a64..4d515e1 100755
--- a/test/test-mesh
+++ b/test/test-mesh
@@ -606,15 +606,15 @@ class OnOffServer(Model):
 
 	def set_publication(self, period):
 
-		# We do not handle ms in this example
-		if period < 1000:
-			return
-
 		self.pub_period = period
 		if period == 0:
 			self.timer.cancel()
 			return
 
+		# We do not handle ms in this example
+		if period < 1000:
+			return
+
 		self.timer.start(period/1000, self.publish)
 
 	def publish(self):