Fix a dangling reference to callback in chatdemo.py.

This commit is contained in:
Ben Darnell 2014-07-24 22:22:59 -04:00
parent dacf210249
commit bcdbd9468f
1 changed files with 1 additions and 1 deletions

View File

@ -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