Hopefully fix xmpp server communication error handling, but fix is kinda dirty

This commit is contained in:
eleksir
2024-12-07 20:12:28 +03:00
parent 073138bde4
commit 21b5f59c1c
4 changed files with 101 additions and 79 deletions

View File

@@ -8,7 +8,7 @@ import (
log "github.com/sirupsen/logrus"
)
func (j *Jabber) SigHandler() {
func (j *Jabber) SigHandler() error {
log.Debug("Installing signal handler")
for s := range j.SigChan {
@@ -55,4 +55,6 @@ func (j *Jabber) SigHandler() {
os.Exit(0)
}
return nil
}