mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/filters/api.go : unsubscribe fix
This commit is contained in:
parent
877d09443d
commit
eb0e9d0d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -266,9 +266,9 @@ func (api *FilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subsc
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer logsSub.Unsubscribe()
|
||||
|
||||
go func() {
|
||||
defer logsSub.Unsubscribe()
|
||||
for {
|
||||
select {
|
||||
case logs := <-matchedLogs:
|
||||
|
|
|
|||
Loading…
Reference in a new issue