Fix double borrow of conn RefCell<T>

This commit is contained in:
Mike "Wizard" Dilger 2014-09-30 13:43:21 +13:00
parent 18e1240601
commit ed3bcda729

View File

@ -1111,7 +1111,7 @@ impl<'conn> PostgresStatement<'conn> {
match try_pg!(conn.read_message_()) {
BindComplete => Ok(()),
ErrorResponse { fields } => {
try!(self.conn.wait_for_ready());
try!(conn.wait_for_ready());
Err(PgDbError(PostgresDbError::new(fields)))
}
_ => {