class_receiveDataThread.py: rename sendpong to recping to match the names of parallel functions

This commit is contained in:
Kyu Crane 2015-07-05 08:45:33 -04:00
parent ce92b6ff8d
commit 3da6bf8b63

View File

@ -174,7 +174,7 @@ class receiveDataThread(threading.Thread):
elif command == 'object':
self.recobject(payload)
elif command == 'ping':
self.sendpong(payload)
self.recping(payload)
#elif command == 'pong':
# pass
except varintDecodeError as e:
@ -233,9 +233,9 @@ class receiveDataThread(threading.Thread):
self.processData()
def sendpong(self):
def recping(self):
with shared.printLock:
print 'Sending pong'
print 'Sending pong in reply to ping'
self.sendDataThreadQueue.put((0, 'sendRawData', shared.CreatePacket('pong')))