ping local nodes without beeing online

This commit is contained in:
j 2016-09-29 10:35:47 +02:00
parent f66e0fbb15
commit cd3bbc3cb6
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ class Node(Thread):
#return Thread.join(self)
def ping(self):
if state.online:
if state.online or self.get_local():
self._q.put('ping')
@property
@ -195,7 +195,7 @@ class Node(Thread):
return False
def is_online(self):
return self.online or self.get_local() != None
return self.online or self.get_local() is not None
def send_response(self):
self._q.put('send_response')