cond.signal() those in lock().cond.wait()

This commit is contained in:
Jim Radford 2014-04-04 16:57:19 -07:00
parent 16db8d194b
commit 5467983d08

View File

@ -123,7 +123,9 @@ pub struct PooledPostgresConnection {
impl Drop for PooledPostgresConnection {
fn drop(&mut self) {
let conn = unsafe { cast::transmute(self.conn.take_unwrap()) };
self.pool.pool.lock().pool.push(conn);
let mut pool = self.pool.pool.lock();
pool.pool.push(conn);
pool.cond.signal();
}
}