also http client close idle
parent
cfd1a177dd
commit
92beedc955
|
|
@ -47,6 +47,7 @@ func newMatrix(conf config.Matrix, cont string) Matrix {
|
||||||
|
|
||||||
func (m Matrix) closeclient(client *gomatrix.Client) {
|
func (m Matrix) closeclient(client *gomatrix.Client) {
|
||||||
go func() {
|
go func() {
|
||||||
|
client.Client.CloseIdleConnections()
|
||||||
client.StopSync()
|
client.StopSync()
|
||||||
client.Logout()
|
client.Logout()
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue