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) +