hypercore-protocol / hyperdrive-daemon

Hyperdrive, batteries included.
MIT License
156 stars 23 forks source link

Close-on-uncaught behavior #17

Open pfrazee opened 4 years ago

pfrazee commented 4 years ago

Currently the daemon shuts itself down on an uncaught exception or unhandled rejection. That makes sense for ensuring a working state (manager processes can detect the close and restart) but when I've got the daemon embedded in Beaker, it causes problems because unhandled rejections are sometimes allowed.

Could we add a flag to disable that or move the behavior outside of the core code or something?