Skip to content

Commit

Permalink
one last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Mar 30, 2017
1 parent 8e5f175 commit 46ed4ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wx/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ bool wxApp_melonDS::OnInit()

int wxApp_melonDS::OnExit()
{
emuthread->EmuPause();
emuthread->EmuExit();
emuthread->Wait();
delete emuthread;

Expand Down Expand Up @@ -169,6 +167,9 @@ MainFrame::MainFrame()

void MainFrame::OnClose(wxCloseEvent& event)
{
emuthread->EmuPause();
emuthread->EmuExit();

NDS::DeInit();

if (joy)
Expand Down

0 comments on commit 46ed4ae

Please sign in to comment.