mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix kicking user.
This commit is contained in:
parent
3dd48c91ac
commit
afcd029e4d
@ -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.
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user