X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fsubscriptions.py;h=ec70d0c2755cb0405facbd8df0b0a19b5c4e03a0;hb=0d9d4a863e1097021c9effba0a8a85ad17a33f8a;hp=c6105eea5b79facffd3dd54a6069876181cebc16;hpb=2fbb1c61b2db824f49cbaedd2991d76eeccc9dd2;p=osm%2FNBI.git 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":