Merge remote-tracking branch 'refs/remotes/vnpy/master'
This commit is contained in:
commit
09646b6158
@ -182,7 +182,7 @@ class EventEngine:
|
|||||||
|
|
||||||
# 尝试获取该事件类型对应的处理函数列表,若无则忽略该次注销请求
|
# 尝试获取该事件类型对应的处理函数列表,若无则忽略该次注销请求
|
||||||
try:
|
try:
|
||||||
handlerList = self.handlers[type_]
|
handlerList = self.__handlers[type_]
|
||||||
|
|
||||||
# 如果该函数存在于列表中,则移除
|
# 如果该函数存在于列表中,则移除
|
||||||
if handler in handlerList:
|
if handler in handlerList:
|
||||||
@ -240,4 +240,4 @@ def test():
|
|||||||
|
|
||||||
# 直接运行脚本可以进行测试
|
# 直接运行脚本可以进行测试
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test()
|
test()
|
||||||
|
Loading…
Reference in New Issue
Block a user