Changeset 179 in code for trunk/upstream.go
- Timestamp:
- Mar 27, 2020, 11:51:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r178 r179 64 64 65 65 // set of LIST commands in progress, per downstream 66 // access is synchronized with user.pendingLISTsLock67 66 pendingLISTDownstreamSet map[uint64]struct{} 68 67 … … 152 151 } 153 152 close(uc.closed) 154 for _, log := range uc.logs {155 log.file.Close()156 }157 uc.endPendingLists(true)158 153 return nil 159 154 } … … 193 188 194 189 func (uc *upstreamConn) getPendingList() *pendingLIST { 195 uc.user.pendingLISTsLock.Lock()196 defer uc.user.pendingLISTsLock.Unlock()197 190 for _, pl := range uc.user.pendingLISTs { 198 191 if _, ok := pl.pendingCommands[uc.network.ID]; !ok { … … 206 199 func (uc *upstreamConn) endPendingLists(all bool) (found bool) { 207 200 found = false 208 uc.user.pendingLISTsLock.Lock()209 defer uc.user.pendingLISTsLock.Unlock()210 201 for i := 0; i < len(uc.user.pendingLISTs); i++ { 211 202 pl := uc.user.pendingLISTs[i]
Note:
See TracChangeset
for help on using the changeset viewer.