class_receiveDataThread.py: rename sendpong to recping to match the names of parallel functions
This commit is contained in:
parent
ce92b6ff8d
commit
3da6bf8b63
|
@ -174,7 +174,7 @@ class receiveDataThread(threading.Thread):
|
||||||
elif command == 'object':
|
elif command == 'object':
|
||||||
self.recobject(payload)
|
self.recobject(payload)
|
||||||
elif command == 'ping':
|
elif command == 'ping':
|
||||||
self.sendpong(payload)
|
self.recping(payload)
|
||||||
#elif command == 'pong':
|
#elif command == 'pong':
|
||||||
# pass
|
# pass
|
||||||
except varintDecodeError as e:
|
except varintDecodeError as e:
|
||||||
|
@ -233,9 +233,9 @@ class receiveDataThread(threading.Thread):
|
||||||
self.processData()
|
self.processData()
|
||||||
|
|
||||||
|
|
||||||
def sendpong(self):
|
def recping(self):
|
||||||
with shared.printLock:
|
with shared.printLock:
|
||||||
print 'Sending pong'
|
print 'Sending pong in reply to ping'
|
||||||
self.sendDataThreadQueue.put((0, 'sendRawData', shared.CreatePacket('pong')))
|
self.sendDataThreadQueue.put((0, 'sendRawData', shared.CreatePacket('pong')))
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user