Browse Source

time.sleep -> sleep

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
20a485f6b9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/irc/connection.py

+ 1
- 1
earwigbot/irc/connection.py View File

@@ -90,7 +90,7 @@ class IRCConnection(object):
with self._send_lock:
time_since_last = time() - self._last_send
if time_since_last < 0.75:
time.sleep(0.75 - time_since_last)
sleep(0.75 - time_since_last)
try:
self._sock.sendall(msg + "\r\n")
except socket.error:


Loading…
Cancel
Save