Skip to content

Commit

Permalink
check timeout for nil when propagage response
Browse files Browse the repository at this point in the history
  • Loading branch information
zelig committed Jun 22, 2015
1 parent 309ca33 commit 89a05fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bzz/netstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ func (self *netStore) strategyUpdateRequest(rs *requestStatus, origReq *retrieve
}
}
return

}

// once a chunk is found propagate it its requesters unless timed out
Expand All @@ -302,7 +301,7 @@ func (self *netStore) propagateResponse(chunk *Chunk) {
Id: uint64(id),
}
for _, req := range requesters {
if req.timeout.After(time.Now()) {
if req.timeout == nil || req.timeout.After(time.Now()) {
glog.V(logger.Debug).Infof("netStore.propagateResponse store -> %064x with %v", req.Id, req.peer)
go req.peer.store(msg)
counter--
Expand Down

0 comments on commit 89a05fc

Please sign in to comment.