Skip to content

Commit

Permalink
Merge pull request #5 from elevenfund/main
Browse files Browse the repository at this point in the history
fixed duplicated eTimer event
  • Loading branch information
vnpy authored Oct 18, 2022
2 parents 1a3f2a9 + 0d54839 commit eda3703
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vnpy_rpcservice/rpc_service/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def register_event(self) -> None:
def process_event(self, event: Event) -> None:
"""调用事件"""
if self.server.is_active():
if event.type == "eTimer":
return
self.server.publish("", event)

def write_log(self, msg: str) -> None:
Expand Down

0 comments on commit eda3703

Please sign in to comment.