- Timestamp:
- Dec 2, 2021, 6:29:44 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r737 r738 386 386 } 387 387 388 func (uc *upstreamConn) cancelPendingCommandsByDownstreamID(downstreamID uint64) { 389 for cmd := range uc.pendingCmds { 390 // We can't cancel the currently running command stored in 391 // uc.pendingCmds[cmd][0] 392 for i := len(uc.pendingCmds[cmd]) - 1; i >= 1; i-- { 393 if uc.pendingCmds[cmd][i].downstreamID == downstreamID { 394 uc.pendingCmds[cmd] = append(uc.pendingCmds[cmd][:i], uc.pendingCmds[cmd][i+1:]...) 395 } 396 } 397 } 398 } 399 388 400 func (uc *upstreamConn) parseMembershipPrefix(s string) (ms *memberships, nick string) { 389 401 memberships := make(memberships, 0, 4) -
trunk/user.go
r736 r738 663 663 664 664 u.forEachUpstream(func(uc *upstreamConn) { 665 uc.cancelPendingCommandsByDownstreamID(dc.id) 665 666 uc.updateAway() 666 667 uc.updateMonitor()
Note:
See TracChangeset
for help on using the changeset viewer.