Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit 8d51bc3c authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1141 Immediately close a WS2P connection if it fails

parent f7df3868
......@@ -36,7 +36,13 @@ export class WS2PClient {
})
// Connecting
await c.connect()
try {
await c.connect()
} catch (e) {
// Immediately close the connection
c.close()
throw e
}
return new WS2PClient(c)
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment