upstream: ignore RPL_ENDOFWHO without pending command

This commit is contained in:
Simon Ser 2022-07-11 11:25:19 +02:00
parent 84188ba644
commit 9ba03b9095

View File

@ -1429,8 +1429,10 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
dc, cmd := uc.dequeueCommand("WHO") dc, cmd := uc.dequeueCommand("WHO")
if cmd == nil { if cmd == nil {
return fmt.Errorf("unexpected RPL_ENDOFWHO: no matching pending WHO") // Some servers send RPL_TRYAGAIN followed by RPL_ENDOFWHO
return nil
} else if dc == nil { } else if dc == nil {
// Downstream connection is gone
return nil return nil
} }