Allow for queueing to the last mailbox
parent
0403e2cd75
commit
9e0b0bfaf3
2
main.c
2
main.c
|
@ -59,7 +59,7 @@ static int get_input(int num_threads, struct input **res) {
|
||||||
if (parse_result == -1) {
|
if (parse_result == -1) {
|
||||||
// On bad input, we should assume an EOF and stop.
|
// On bad input, we should assume an EOF and stop.
|
||||||
break;
|
break;
|
||||||
} else if (current_input.recipient >= num_threads || current_input.recipient < 0) {
|
} else if (current_input.recipient > num_threads || current_input.recipient < 0) {
|
||||||
printf("Invalid recipient id.\n");
|
printf("Invalid recipient id.\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue