X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fsubscriptions.py;h=ec70d0c2755cb0405facbd8df0b0a19b5c4e03a0;hp=c6105eea5b79facffd3dd54a6069876181cebc16;hb=2278fa4af665ea7720797e13ef0055ee6e96d59f;hpb=b5422dac9b58ea664a1159e8b9db0cc67a37ea7e diff --git a/osm_nbi/subscriptions.py b/osm_nbi/subscriptions.py index c6105ee..ec70d0c 100644 --- a/osm_nbi/subscriptions.py +++ b/osm_nbi/subscriptions.py @@ -201,7 +201,9 @@ class SubscriptionThread(threading.Thread): event_details) # self.logger.debug("subscribers list: ") # self.logger.debug(subscribers) - asyncio.ensure_future(self.nslcm.send_notifications(subscribers, loop=self.loop)) + if subscribers: + asyncio.ensure_future(self.nslcm.send_notifications(subscribers, loop=self.loop), + loop=self.loop) else: self.logger.debug("Message can not be used for notification of nslcm") elif topic == "nsi":