fix kicking user.

This commit is contained in:
m1k1o 2021-02-18 18:33:21 +01:00
parent 3dd48c91ac
commit afcd029e4d
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,7 @@ This app uses Web RTC to stream a desktop inside of a docker container. This is
- Locked screen only for users, admins can still join. - Locked screen only for users, admins can still join.
- Fixed h264 pipelines bugs (by @mbattista). - Fixed h264 pipelines bugs (by @mbattista).
- Fixed sessions manager thread safety by adding mutexes (caused panic in rare edge cases). - Fixed sessions manager thread safety by adding mutexes (caused panic in rare edge cases).
- Now when user gets kicked, he won't join as a ghost user again but will be logged out.
### Misc ### Misc
- Custom docker workflow. - Custom docker workflow.

View File

@ -84,6 +84,11 @@ export class NekoClient extends BaseClient implements EventEmitter<NekoEvents> {
protected [EVENT.DISCONNECTED](reason?: Error) { protected [EVENT.DISCONNECTED](reason?: Error) {
this.cleanup() this.cleanup()
if (reason && reason.message == 'kicked') {
this.$accessor.logout()
}
this.$vue.$notify({ this.$vue.$notify({
group: 'neko', group: 'neko',
type: 'error', type: 'error',