Skip to content

Commit 5467983

Browse files
committed
cond.signal() those in lock().cond.wait()
1 parent 16db8d1 commit 5467983

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pool.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ pub struct PooledPostgresConnection {
123123
impl Drop for PooledPostgresConnection {
124124
fn drop(&mut self) {
125125
let conn = unsafe { cast::transmute(self.conn.take_unwrap()) };
126-
self.pool.pool.lock().pool.push(conn);
126+
let mut pool = self.pool.pool.lock();
127+
pool.pool.push(conn);
128+
pool.cond.signal();
127129
}
128130
}
129131

0 commit comments

Comments
 (0)