all repos — mgba @ 49b676fa7e8b60969467fab64bf1f4cf10638a72

mGBA Game Boy Advance Emulator

Fix double-ending the GBA thread
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 02:48:37 -0700
commit

49b676fa7e8b60969467fab64bf1f4cf10638a72

parent

39b5396c0b46d1bb13b39b466c206a10c5ce7bdc

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -90,8 +90,8 @@ m_audioThread->wait();

if (GBAThreadIsPaused(&m_threadContext)) { GBAThreadUnpause(&m_threadContext); } - GBAThreadEnd(&m_threadContext); - GBAThreadJoin(&m_threadContext); + disconnect(); + closeGame(); delete m_renderer; }