summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Announcer.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Announcer.hs b/Announcer.hs
index 6d971ebf..370ef13a 100644
--- a/Announcer.hs
+++ b/Announcer.hs
@@ -177,6 +177,7 @@ listener announcer = relisten
177 case cmd of 177 case cmd of
178 ScheduleAction (k, p, s) -> atomically $ modifyScheduled $ PSQ.insert' k s p 178 ScheduleAction (k, p, s) -> atomically $ modifyScheduled $ PSQ.insert' k s p
179 UnscheduleAction k -> atomically $ modifyScheduled $ PSQ.delete k 179 UnscheduleAction k -> atomically $ modifyScheduled $ PSQ.delete k
180 RunAction io -> io
180 RunActionSTM k (ScheduledItem f) -> do 181 RunActionSTM k (ScheduledItem f) -> do
181 now <- getPOSIXTime 182 now <- getPOSIXTime
182 join . atomically $ modifyScheduled (PSQ.delete k) >> f announcer k now 183 join . atomically $ modifyScheduled (PSQ.delete k) >> f announcer k now