Snake: fix deadlock caused by use of view_port_update while locking model (#3063)

This commit is contained in:
あく 2023-09-11 21:08:09 +09:00 committed by GitHub
parent 77d6c41914
commit 9f6fc6fe79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,8 +390,8 @@ int32_t snake_game_app(void* p) {
// event timeout
}
view_port_update(view_port);
furi_mutex_release(snake_state->mutex);
view_port_update(view_port);
}
// Return backlight to normal state