forked from M-Labs/artiq
1
0
Fork 0

runtime: avoid spurious error messages.

This commit is contained in:
whitequark 2015-08-07 11:03:36 +03:00
parent b5cf1e395d
commit b6e2613f77
1 changed files with 2 additions and 2 deletions

View File

@ -41,6 +41,8 @@ static int load_or_start_kernel(void *library, int run_kernel)
start_kernel_cpu(&request);
struct msg_load_reply *reply = mailbox_wait_and_receive();
mailbox_acknowledge();
if(reply->type != MESSAGE_TYPE_LOAD_REPLY) {
log("BUG: unexpected reply to load/run request");
return 0;
@ -51,8 +53,6 @@ static int load_or_start_kernel(void *library, int run_kernel)
return 0;
}
mailbox_acknowledge();
return 1;
}