end multiplex read loop on exception

This commit is contained in:
Dmitriy Ryajov 2019-09-28 13:54:16 -06:00
parent cc2072d290
commit 68eb142a7c
1 changed files with 2 additions and 1 deletions

View File

@ -143,6 +143,7 @@ proc handle*(m: MultisteamSelect, conn: Connection) {.async, gcsafe.} =
return return
except Exception as exc: except Exception as exc:
warn "exception while handling ", msg = exc.msg warn "exception while handling ", msg = exc.msg
return
warn "no handlers for ", protocol = ms warn "no handlers for ", protocol = ms
await conn.write(m.na) await conn.write(m.na)