Fix a dangling reference to callback in chatdemo.py.
This commit is contained in:
parent
dacf210249
commit
bcdbd9468f
|
@ -49,7 +49,7 @@ class MessageBuffer(object):
|
|||
break
|
||||
new_count += 1
|
||||
if new_count:
|
||||
result_future.set_result(callback(self.cache[-new_count:]))
|
||||
result_future.set_result(self.cache[-new_count:])
|
||||
return result_future
|
||||
self.waiters.add(result_future)
|
||||
return result_future
|
||||
|
|
Loading…
Reference in New Issue