Skip to content

Commit 2949113

Browse files
authored
Merge pull request #4 from safeblock-dev/issue/gopoolch-hold
Update gopoolch.go
2 parents 254dc8b + ccf56d2 commit 2949113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gopoolch/gopoolch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ func (p *PoolCh) Reset() {
6262

6363
func (p *PoolCh) Hold() error {
6464
p.Wait()
65+
defer p.Reset()
6566
if p.HasError() {
6667
return p.Error()
6768
}
68-
p.Reset()
6969

7070
return nil
7171
}

0 commit comments

Comments
 (0)