mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
If not use the session stored timer, need to replace it with the default timer (#825)
This commit is contained in:
@@ -227,9 +227,14 @@ class LoopBase:
|
||||
max_loop = max(session.loop_trace.keys())
|
||||
logger.storage.truncate(time=session.loop_trace[max_loop][-1].end)
|
||||
|
||||
if session.timer.started and replace_timer:
|
||||
RD_Agent_TIMER_wrapper.replace_timer(session.timer)
|
||||
RD_Agent_TIMER_wrapper.timer.restart_by_remain_time()
|
||||
if session.timer.started:
|
||||
if replace_timer:
|
||||
RD_Agent_TIMER_wrapper.replace_timer(session.timer)
|
||||
RD_Agent_TIMER_wrapper.timer.restart_by_remain_time()
|
||||
else:
|
||||
# Use the default timer to replace the session timer
|
||||
session.timer = RD_Agent_TIMER_wrapper.timer
|
||||
|
||||
return session
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user