aboutsummaryrefslogtreecommitdiff
path: root/Assistant/Threads
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-02 14:02:35 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-02 14:02:35 -0400
commit74fc9fcbe68ce7802d44499e8b5dc5c5d186ee66 (patch)
tree873acc0b816f65c3b7c00cd1bed548ed40916298 /Assistant/Threads
parente21a32627fc600e6f7fa72929c95cfb49390dae3 (diff)
add alert when committing
Diffstat (limited to 'Assistant/Threads')
-rw-r--r--Assistant/Threads/Committer.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Assistant/Threads/Committer.hs b/Assistant/Threads/Committer.hs
index cce8d5e2b..095c8feac 100644
--- a/Assistant/Threads/Committer.hs
+++ b/Assistant/Threads/Committer.hs
@@ -54,7 +54,9 @@ commitThread st changechan commitchan transferqueue dstatus = runEvery (Seconds
, show (length readychanges)
, "changes"
]
- void $ tryIO $ runThreadState st commitStaged
+ void $ alertWhile dstatus commitAlert $
+ tryIO (runThreadState st commitStaged)
+ >> return True
recordCommit commitchan (Commit time)
else refill readychanges
else refill changes