Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadi committed Dec 6, 2017
1 parent ac74ae1 commit ff42b2f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion son-sm-template/sonsmbase/smbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import threading
import os
import re
import time
from sonmanobase import messaging


Expand Down Expand Up @@ -89,6 +90,8 @@ def __init__(self,

self.registration()

self.infinity_loop()


def name_validation(self, smtype, sname, fname, name, id):

Expand Down Expand Up @@ -164,4 +167,12 @@ def on_registration_ok(self):
"""
To be overwritten by subclasses
"""
LOG.info("Received registration ok event.")
LOG.info("Received registration ok event.")

def infinity_loop(self):

# go into infinity loop (we could do anything here)

while True:
time.sleep(1)

0 comments on commit ff42b2f

Please sign in to comment.