avoid Dummy postman error
@@ -180,7 +180,8 @@ fn start_postman(
let mut c = 0;
while c < end_index {
if let Some(ref reqs) = *reqs.read().unwrap() {
- if let Some((r,tx)) = reqs[c as usize].try_pop() {
+ if let Some(q) = reqs.get(c as usize) { // avoid mysterious indexing error
+ if let Some((r,tx)) = q.try_pop() {
match r {
Request::GarblerInput(modulus) => {
let mut inps = gb_inps.lock().unwrap();
@@ -196,6 +197,7 @@ fn start_postman(
}
}
}
+ }
let done_mutex = done.lock().unwrap();
if let Some(ref done) = *done_mutex {
if done[c as usize] {
