We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16db8d1 commit 5467983Copy full SHA for 5467983
1 file changed
src/pool.rs
@@ -123,7 +123,9 @@ pub struct PooledPostgresConnection {
123
impl Drop for PooledPostgresConnection {
124
fn drop(&mut self) {
125
let conn = unsafe { cast::transmute(self.conn.take_unwrap()) };
126
- self.pool.pool.lock().pool.push(conn);
+ let mut pool = self.pool.pool.lock();
127
+ pool.pool.push(conn);
128
+ pool.cond.signal();
129
}
130
131
0 commit comments