Fix bad download crashing the emulator
commit2f9782fd9ca5c9c22bea9f6fb5407e585ac5e2df
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Mon, 19 Jan 2015 10:28:02 +0000 (19 12:28 +0200)
committerIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Mon, 19 Jan 2015 10:28:02 +0000 (19 12:28 +0200)
treed262f09d73aa1ab2f745111db11d27c84797f1ff
parent8403744ba6d1f0d2252e4b48e489075f74a4b498
Fix bad download crashing the emulator

Turns out the way download timer was stopped was buggy and crashed the
emulator in some cases (especially if download failed or couln't be
loaded).

Abuse the focus timer to clean up download timers, so to avoid timer
stopping and cleaning up itself.
src/platform/wxwidgets/mainwindow.cpp