修复callback连续两次加入的bug

This commit is contained in:
yh 2019-07-25 16:01:17 +08:00
parent 329a18976f
commit 210af73c6e

View File

@ -324,7 +324,7 @@ class CallbackManager(Callback):
self._env = env
self.callbacks = []
if callbacks:
self.callbacks += self.prepare_callbacks(callbacks)
self.prepare_callbacks(callbacks)
def prepare_callbacks(self, callbacks):
if not callbacks: