Cancel the `OrderClient` sync-method relay task on exit
parent
9c5d6d2592
commit
c44627ab52
|
@ -240,7 +240,10 @@ async def open_ems(
|
|||
'''
|
||||
broker, symbol, suffix = unpack_fqme(fqme)
|
||||
|
||||
async with maybe_open_emsd(broker) as portal:
|
||||
async with maybe_open_emsd(
|
||||
broker,
|
||||
loglevel=loglevel,
|
||||
) as portal:
|
||||
|
||||
mod = get_brokermod(broker)
|
||||
if (
|
||||
|
@ -304,3 +307,6 @@ async def open_ems(
|
|||
accounts,
|
||||
dialogs,
|
||||
)
|
||||
|
||||
# stop the sync-msg-relay task on exit.
|
||||
n.cancel_scope.cancel()
|
||||
|
|
Loading…
Reference in New Issue