Skip to content

Commit

Permalink
Compute delay properly, see comments attached to #263
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Aug 11, 2014
1 parent d70b882 commit 4875a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ def writable(self, t=time.time):
if self.delay:
# we called a deferred producer via this channel (see refill_buffer)
last_writable_check = self.writable_check
self.writable_check = now
elapsed = now - last_writable_check
if elapsed > self.delay:
self.writable_check = now
return True
else:
return False
Expand Down

0 comments on commit 4875a92

Please sign in to comment.