From aeb8540ad46a8fb7bf79d1312cebb3609c8888e2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 18 Sep 2020 14:12:51 +0200 Subject: [PATCH] Fix kickability. --- disk/disk.go | 2 +- rtpconn/webclient.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/disk.go b/disk/disk.go index fd9328e..6454344 100644 --- a/disk/disk.go +++ b/disk/disk.go @@ -73,7 +73,7 @@ func (client *Client) Close() error { return nil } -func (client *Client) kick(message string) error { +func (client *Client) Kick(message string) error { err := client.Close() group.DelClient(client) return err diff --git a/rtpconn/webclient.go b/rtpconn/webclient.go index ea3a17d..bdad980 100644 --- a/rtpconn/webclient.go +++ b/rtpconn/webclient.go @@ -909,7 +909,7 @@ func setPermissions(g *group.Group, id string, perm string) error { return c.action(permissionsChangedAction{}) } -func (c *webClient) kick(message string) error { +func (c *webClient) Kick(message string) error { return c.action(kickAction{message}) }