also http client close idle

v0.5.15
Bel LaPointe 2022-03-16 16:51:04 -06:00
parent cfd1a177dd
commit 92beedc955
1 changed files with 1 additions and 0 deletions

View File

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