From ff42b2f71691c8a5447ff3f98c9ce9448f9ef31f Mon Sep 17 00:00:00 2001 From: Hadi Date: Wed, 6 Dec 2017 17:03:45 +0100 Subject: [PATCH] bug fix --- son-sm-template/sonsmbase/smbase.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/son-sm-template/sonsmbase/smbase.py b/son-sm-template/sonsmbase/smbase.py index bf2242b..2407752 100644 --- a/son-sm-template/sonsmbase/smbase.py +++ b/son-sm-template/sonsmbase/smbase.py @@ -25,6 +25,7 @@ import threading import os import re +import time from sonmanobase import messaging @@ -89,6 +90,8 @@ def __init__(self, self.registration() + self.infinity_loop() + def name_validation(self, smtype, sname, fname, name, id): @@ -164,4 +167,12 @@ def on_registration_ok(self): """ To be overwritten by subclasses """ - LOG.info("Received registration ok event.") \ No newline at end of file + LOG.info("Received registration ok event.") + + def infinity_loop(self): + + # go into infinity loop (we could do anything here) + + while True: + time.sleep(1) +