Merge branch 'fix-node-exit' into 'master'

Node: catch correct P2P exn

See merge request !127
This commit is contained in:
Benjamin Canou 2016-12-14 12:04:04 +01:00
commit 19d3604441

View File

@ -255,7 +255,7 @@ let create
Lwt.catch Lwt.catch
worker_loop worker_loop
(function (function
| Lwt_stream.Empty -> cleanup () | Queue.Empty -> cleanup ()
| exn -> | exn ->
lwt_log_error "unexpected exception in worker\n%s" lwt_log_error "unexpected exception in worker\n%s"
(Printexc.to_string exn) >>= fun () -> (Printexc.to_string exn) >>= fun () ->