upstream: ignore RPL_ENDOFWHO without pending command
This commit is contained in:
parent
84188ba644
commit
9ba03b9095
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user