From a673f8a4d4b80933a2bc0694cc10b95a8c52a680 Mon Sep 17 00:00:00 2001 From: Greg Hewgill Date: Fri, 19 Aug 2011 21:43:12 +1200 Subject: [PATCH] graceful shutdown if cpu core exits --- applepy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applepy.py b/applepy.py index 2c35ca5..71e0aef 100644 --- a/applepy.py +++ b/applepy.py @@ -386,6 +386,8 @@ class Apple2: quit = False while not quit: op = self.cpu.recv(8) + if len(op) == 0: + break cycle, rw, addr, val = struct.unpack("