Commit 83beb032 authored by Aurel Wildfellner's avatar Aurel Wildfellner

force kill with calling external kill process,.. waahhhh

parent 9e295492
......@@ -20,6 +20,8 @@
import random
import time
import os
import subprocess
# auxiliary tools
from pongconfig import PongConfig
......@@ -278,7 +280,10 @@ def main():
while True:
if pg.gameState == GameState.GAMEEND:
break
print("REACHED END OF GAME")
pygame.quit()
pid = os.getpid()
subprocess.call(["kill", "-9", str(pid)])
pg.gameLoop()
#TODO catch exceptions and stop barcode reader threads
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment