Snake: fix deadlock caused by use of view_port_update while locking model (#3063)
This commit is contained in:
		
							parent
							
								
									77d6c41914
								
							
						
					
					
						commit
						9f6fc6fe79
					
				@ -390,8 +390,8 @@ int32_t snake_game_app(void* p) {
 | 
				
			|||||||
            // event timeout
 | 
					            // event timeout
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        view_port_update(view_port);
 | 
					 | 
				
			||||||
        furi_mutex_release(snake_state->mutex);
 | 
					        furi_mutex_release(snake_state->mutex);
 | 
				
			||||||
 | 
					        view_port_update(view_port);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Return backlight to normal state
 | 
					    // Return backlight to normal state
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user