Don't return when the unsubscribe fails
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This rollbacks the behaviour introduced in 09eb97b
This commit is contained in:
Grégoire Delattre 2020-03-02 13:09:13 +01:00
parent 1197e6ce6c
commit 15f95c0d74

View File

@ -103,7 +103,7 @@ func (p *PolochonEventers) Unsubscribe(chanl *Channel) {
if err := tn.Unsubscribe(chanl); err != nil { if err := tn.Unsubscribe(chanl); err != nil {
p.log.Errorf("failed to unsubscribe eventer: %s", err.Error()) p.log.Errorf("failed to unsubscribe eventer: %s", err.Error())
return // TODO: check if we need to return here
} }
if len(tn.Subscribers()) == 0 { if len(tn.Subscribers()) == 0 {