Skip to content

Commit 508d0fb

Browse files
committed
io-sim: force trace when creating timeout
1 parent ff1e57c commit 508d0fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

io-sim/src/Control/Monad/IOSim/Internal.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ schedule !thread@Thread{
349349
!t = Timeout tvar tvar' nextTmid
350350
!timers' = PSQ.insert nextTmid expiry (TimerVars tvar tvar') timers
351351
!thread' = thread { threadControl = ThreadControl (k t) ctl }
352-
trace <- schedule thread' simstate { timers = timers'
353-
, nextVid = succ (succ nextVid)
354-
, nextTmid = succ nextTmid }
352+
!trace <- schedule thread' simstate { timers = timers'
353+
, nextVid = succ (succ nextVid)
354+
, nextTmid = succ nextTmid }
355355
return (SimTrace time tid tlbl (EventTimerCreated nextTmid nextVid expiry) trace)
356356

357357
-- we do not follow `GHC.Event` behaviour here; updating a timer to the past

0 commit comments

Comments
 (0)