Fixing missing wait call for pool chrome instances
This commit is contained in:
parent
6c5096f06a
commit
21d13b8f0a
4
pool.go
4
pool.go
|
@ -144,12 +144,14 @@ type Res struct {
|
||||||
func (r *Res) Release() error {
|
func (r *Res) Release() error {
|
||||||
r.cancel()
|
r.cancel()
|
||||||
|
|
||||||
|
err := r.c.Wait()
|
||||||
|
|
||||||
r.p.rw.Lock()
|
r.p.rw.Lock()
|
||||||
defer r.p.rw.Unlock()
|
defer r.p.rw.Unlock()
|
||||||
|
|
||||||
delete(r.p.res, r.port)
|
delete(r.p.res, r.port)
|
||||||
|
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Port returns the allocated port for the pool resource.
|
// Port returns the allocated port for the pool resource.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user