mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-22 03:49:25 +01:00
Don't treat nil as an unknown type of error (zulip) (#2024)
Fixes #1869
This commit is contained in:
parent
5feafcddba
commit
6500714a93
@ -106,6 +106,7 @@ func (b *Bzulip) getChannel(id int) string {
|
||||
func (b *Bzulip) handleQueue() error {
|
||||
for {
|
||||
messages, err := b.q.GetEvents()
|
||||
if err != nil {
|
||||
switch err {
|
||||
case gzb.BackoffError:
|
||||
time.Sleep(time.Second * 5)
|
||||
@ -129,7 +130,7 @@ func (b *Bzulip) handleQueue() error {
|
||||
b.Log.Debugf("receiving error: %#v", err)
|
||||
time.Sleep(time.Second * 10)
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
continue
|
||||
}
|
||||
for _, m := range messages {
|
||||
|
Loading…
Reference in New Issue
Block a user