eth/downloader: remove last use of cancelCh in statesync.go

Fixes TestDeliverHeadersHang*Fast and (hopefully)
the weird cancellation behaviour at the end of fast sync.
This commit is contained in:
Felix Lange 2017-05-31 03:28:55 +02:00 committed by Péter Szilágyi
parent 339bc104b4
commit baa79e9df0
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -54,7 +54,7 @@ func (d *Downloader) syncState(root common.Hash) *stateSync {
s := newStateSync(d, root)
select {
case d.stateSyncStart <- s:
case <-d.cancelCh:
case <-d.quitCh:
s.err = errCancelStateFetch
close(s.done)
}