Skip to content

Commit

Permalink
Threading safe?
Browse files Browse the repository at this point in the history
  • Loading branch information
dh377 committed Apr 22, 2022
1 parent df2911b commit 53e479d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def trying_to_register(retry=3, timeout=3.0):
while trial <= retry:
try:
KiwoomOpenApiPlusError.try_or_raise(
self.control.SetRealReg(screen_no, code, fid_list_joined, opt_type)
self.control.SetRealReg.async_call(screen_no, code, fid_list_joined, opt_type)
)
except KiwoomOpenApiPlusError as e:
self.logger.warning(f"Failed to register {code=} following reason: {e} ({e.code}). Retry ({trial}/{retry}) in {timeout} ...")
Expand Down

0 comments on commit 53e479d

Please sign in to comment.