check for pid before execute
@@ -102,6 +102,7 @@ class MonitorChannel(ChannelInterface):
self.close_channel(channel, uri)
def kill_process(self, pid, grpc_url='grpc://localhost:12321'):
+ if pid is not None:
rospy.logdebug("kill process %d on %s" % (pid, grpc_url))
uri, _ = nmdurl.split(grpc_url)
vm, channel = self.get_monitor_manager(uri)
