From 34d7cad6cdc3ad21a3b94b7ca55f4ff04a019647 Mon Sep 17 00:00:00 2001 From: CodePanter Date: Tue, 22 Nov 2016 22:29:49 +0100 Subject: [PATCH] Changed the 'sleep' variable in PixelVloedClient.SendPacket into a float. --- vloed.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vloed.py b/vloed.py index 701984c..405e9a7 100755 --- a/vloed.py +++ b/vloed.py @@ -217,16 +217,16 @@ class PixelVloedClient(object): """Sleeps the designated amount of time""" time.sleep(duration if duration else self.sleep) - def SendPacket(self, message, sleep=True): + def SendPacket(self, message, sleep=0.01): """Sends the message to the udp server Arguments: message: (str, 140) - sleep: (bool) True, should the client sleep for a while? + sleep: (float) 0.01, duration of time the client should sleep """ self.sock.sendto(message, (self.ipaddress, self.port)) if sleep: - self.Sleep() + self.Sleep(duration=0.01) @staticmethod def DiscoverServers(returnfirst=False, timeout=5):