virtual: must continue draining events even if no channels (yet) registered

This commit is contained in:
Ask Solem 2011-01-21 10:27:41 +01:00
parent 9689ea75af
commit 2d08e34e50
1 changed files with 0 additions and 2 deletions

View File

@ -562,8 +562,6 @@ class Transport(base.Transport):
channel.close()
def drain_events(self, connection, timeout=None):
if not self.channels:
raise ValueError("No channels to drain events from.")
loop = 0
time_start = time()
while 1: