Skip to content

Fix abnormal program termination#2

Open
DanDanCool wants to merge 1 commit intoServePeak:masterfrom
DanDanCool:patch-1
Open

Fix abnormal program termination#2
DanDanCool wants to merge 1 commit intoServePeak:masterfrom
DanDanCool:patch-1

Conversation

@DanDanCool
Copy link

On line 196, the program checks for the 'QUIT' event. The pygame.quit function is called, but the program keeps running, attempting to draw on a screen that no longer exists, causing a crash. I've added a return statement on the next line so that the program terminates regularly instead of crashing.

On line 196, the program checks for the 'QUIT' event. The pygame.quit function is called, but the program keeps running, attempting to draw on a screen that no longer exists, causing a crash. I've added a return statement on the next line so that the program terminates regularly instead of crashing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant