Do not reply on CMD_NONE.

Avoids potential deadlock.
This commit is contained in:
Hans-Kristian Arntzen 2014-02-13 11:20:18 +01:00
parent 429b3126cb
commit 6a6f56a82e
1 changed files with 4 additions and 0 deletions

View File

@ -294,6 +294,10 @@ static void thread_loop(void *data)
thr->cmd_data.i);
thread_reply(thr, CMD_POKE_SET_ASPECT_RATIO);
break;
case CMD_NONE:
// Never reply on no command. Possible deadlock if thread sends command right after frame update.
break;
default:
thread_reply(thr, send_cmd);