From 21d13b8f0a227b0cdac2b185328c1a9e980292f5 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sat, 18 Feb 2017 09:49:41 +0700 Subject: [PATCH] Fixing missing wait call for pool chrome instances --- pool.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pool.go b/pool.go index bde807e..3c3b9d7 100644 --- a/pool.go +++ b/pool.go @@ -144,12 +144,14 @@ type Res struct { func (r *Res) Release() error { r.cancel() + err := r.c.Wait() + r.p.rw.Lock() defer r.p.rw.Unlock() delete(r.p.res, r.port) - return nil + return err } // Port returns the allocated port for the pool resource.