ensure that close is not intercepted by any other event. (#29)

This commit is contained in:
Miroslav Šedivý
2023-04-22 14:23:06 +02:00
committed by GitHub
parent d0b318572c
commit 9f8310fe10
2 changed files with 10 additions and 3 deletions

View File

@ -442,7 +442,7 @@
})
this.neko.events.on('connection.closed', (error?: Error) => {
if (error) {
alert('Connection closed with error:' + error.message)
alert('Connection closed with error: ' + error.message)
} else {
alert('Connection closed without error.')
}