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=341ac1bac7b115d64a50ec166aa5e6d186b39443;hpb=bb70c819066b7f558babf86dbd08fa2f57c52ae5;ds=inline 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":