Commit 38e607b8 authored by Amos Latteier's avatar Amos Latteier

Fix a small problem with freeing producers.

parent b8930da0
......@@ -352,7 +352,7 @@ class zhttp_channel(http_channel):
self.current_request=None
while self.producer_fifo:
p=self.producer_fifo.first()
if p is not None:
if p is not None and type(p) != types.StringType:
p.more() # free up resources held by producer
self.producer_fifo.pop()
dispatcher.close(self)
......
......@@ -352,7 +352,7 @@ class zhttp_channel(http_channel):
self.current_request=None
while self.producer_fifo:
p=self.producer_fifo.first()
if p is not None:
if p is not None and type(p) != types.StringType:
p.more() # free up resources held by producer
self.producer_fifo.pop()
dispatcher.close(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment