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}) }