Skip to content

Commit 53b9eb3

Browse files
committed
fix: remove select to exit to avoid hang bug
1 parent 42414c7 commit 53b9eb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

views/flipchess_scene_1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ bool flipchess_scene_1_input(InputEvent* event, void* context) {
561561
instance->view,
562562
FlipChessScene1Model * model,
563563
{
564+
// if(model->paramExit == FlipChessStatusReturn) {
565+
// instance->callback(FlipChessCustomEventScene1Back, instance->context);
566+
// break;
567+
// }
564568
if(!flipchess_isPlayerTurn(model)) {
565569
model->thinking = 1;
566570
}
@@ -572,10 +576,6 @@ bool flipchess_scene_1_input(InputEvent* event, void* context) {
572576
instance->view,
573577
FlipChessScene1Model * model,
574578
{
575-
if(model->paramExit == FlipChessStatusReturn) {
576-
instance->callback(FlipChessCustomEventScene1Back, instance->context);
577-
break;
578-
}
579579
// first turn of round, probably player but could be AI
580580
flipchess_turn(model);
581581
flipchess_drawBoard(model);

0 commit comments

Comments
 (0)