also http client close idle
This commit is contained in:
@@ -47,6 +47,7 @@ func newMatrix(conf config.Matrix, cont string) Matrix {
|
||||
|
||||
func (m Matrix) closeclient(client *gomatrix.Client) {
|
||||
go func() {
|
||||
client.Client.CloseIdleConnections()
|
||||
client.StopSync()
|
||||
client.Logout()
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user