mirror of https://github.com/mgba-emu/mgba.git
Fix double-ending the GBA thread
This commit is contained in:
parent
39b5396c0b
commit
49b676fa7e
|
@ -90,8 +90,8 @@ GameController::~GameController() {
|
|||
if (GBAThreadIsPaused(&m_threadContext)) {
|
||||
GBAThreadUnpause(&m_threadContext);
|
||||
}
|
||||
GBAThreadEnd(&m_threadContext);
|
||||
GBAThreadJoin(&m_threadContext);
|
||||
disconnect();
|
||||
closeGame();
|
||||
delete m_renderer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue