mirror of
https://github.com/pushbits/server.git
synced 2025-06-04 03:32:24 +02:00
Merge branch 'main' into #24-switch-to-mautrix
This commit is contained in:
commit
dc6c76747f
22 changed files with 777 additions and 62 deletions
|
@ -40,8 +40,12 @@ func Create(homeserver, username, password string, formatting configuration.Form
|
|||
// Close closes the dispatcher connection.
|
||||
func (d *Dispatcher) Close() {
|
||||
log.Printf("Logging out.")
|
||||
|
||||
_, err := d.mautrixClient.Logout()
|
||||
if err != nil {
|
||||
log.Printf("Error while logging out: %s", err)
|
||||
}
|
||||
|
||||
d.mautrixClient.Logout()
|
||||
d.mautrixClient.ClearCredentials()
|
||||
|
||||
log.Printf("Successfully logged out.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue