Shell: Catch Lwt.Canceled during worker termination

This commit is contained in:
Pietro Abate 2019-01-24 13:42:42 +01:00 committed by Grégoire Henry
parent b5515ea99e
commit 4d3174c557
No known key found for this signature in database
GPG Key ID: 50D984F20BD445D2

View File

@ -490,7 +490,7 @@ module Make
end >>= function
| Ok () ->
loop ()
| Error [Canceled | Exn Lwt_pipe.Closed | Exn Lwt_dropbox.Closed ] ->
| Error [Canceled | Exn Lwt.Canceled | Exn Lwt_pipe.Closed | Exn Lwt_dropbox.Closed ] ->
Logger.lwt_log_notice
"@[Worker terminated [%a] @]"
Name.pp w.name >>= fun () ->