Factorize check on code returned by prepare/step.

This commit is contained in:
gwenn
2018-03-27 21:49:09 +02:00
parent c612a44207
commit cccdf9735f
3 changed files with 14 additions and 19 deletions

View File

@@ -875,10 +875,7 @@ impl InnerConnection {
&mut c_stmt,
ptr::null_mut(),
);
if (rc & 0xFF) != ffi::SQLITE_LOCKED {
break;
}
rc = unlock_notify::wait_for_unlock_notify(self.db);
rc = unlock_notify::wait_for_unlock_notify(self.db, rc);
if rc != ffi::SQLITE_OK {
break;
}