diff --git a/src/Simplex/Messaging/Agent/Client.hs b/src/Simplex/Messaging/Agent/Client.hs index 49198c65e..d2a2554fe 100644 --- a/src/Simplex/Messaging/Agent/Client.hs +++ b/src/Simplex/Messaging/Agent/Client.hs @@ -1868,6 +1868,7 @@ withWork c doWork getWork action = withWorkItems :: AgentClient -> TMVar () -> (DB.Connection -> IO (Either StoreError [Either StoreError a])) -> (NonEmpty a -> AM ()) -> AM () withWorkItems c doWork getWork action = do withStore' c getWork >>= \case + Right [] -> noWork Right rs -> do let (errs, items) = partitionEithers rs case L.nonEmpty items of