changed quit() to sys.exit()

main
Stephan Halder 2023-03-29 15:06:18 +02:00
parent 4997a00be3
commit 9d29da7284
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import sys
from typing import Optional from typing import Optional
import pygame import pygame
@ -138,7 +139,7 @@ class MainLoop:
for event in pygame_events: for event in pygame_events:
if event.type == pygame.QUIT: if event.type == pygame.QUIT:
pygame.quit() pygame.quit()
quit() sys.exit()
self.screen.fill((0, 0, 0)) self.screen.fill((0, 0, 0))