Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Dec 11, 2024
1 parent e68b499 commit cba08b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions native/cocos/platform/android/AndroidPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,14 +860,14 @@ int32_t AndroidPlatform::loop() {
if (pollResult == ALOOPER_POLL_ERROR) {
CC_LOG_ERROR("ALooper_pollOnce returned and error");
break;
} else {
if (source != nullptr) {
source->process(_app, source);
}
if (pollResult == ALOOPER_POLL_TIMEOUT) {
break;
}
}
if (source != nullptr) {
source->process(_app, source);
}
if (pollResult == ALOOPER_POLL_TIMEOUT) {
break;
}


// Exit the game loop when the Activity is destroyed
if (_app->destroyRequested) {
Expand Down

0 comments on commit cba08b7

Please sign in to comment.