fkie_master_discovery: do not publish statistics after shutdown
@@ -1047,6 +1047,7 @@ class Discoverer(object):
:type stats: `fkie_master_discovery.msg.LinkStatesStamped <http://www.ros.org/doc/api/fkie_master_discovery/html/msg/LinkStatesStamped.html>`_
'''
+ if not rospy.is_shutdown():
with self.__lock:
try:
self.pubstats.publish(stats)
