fix: catch pipe errors (#678)

* fix: catch pipe errors

There were some pipe errors not being caught. This can result in unhandled exceptions being thrown

* fix: catch pipe errors in identify push handler
This commit is contained in:
Jacob Heun
2020-06-18 15:33:08 +02:00
committed by GitHub
parent a1590acc8b
commit a8219e61a0
4 changed files with 23 additions and 20 deletions

View File

@ -258,7 +258,7 @@ class Upgrader {
}
// Pipe all data through the muxer
pipe(upgradedConn, muxer, upgradedConn)
pipe(upgradedConn, muxer, upgradedConn).catch(log.error)
}
const _timeline = maConn.timeline