Ensure we're done with the timer before destroying
This commit is contained in:
parent
6fdb1bf698
commit
245c7a9dbb
3
main.c
3
main.c
|
@ -190,6 +190,9 @@ void teardown(void) {
|
||||||
FreeSignal(waitForSoundSignalNumber);
|
FreeSignal(waitForSoundSignalNumber);
|
||||||
}
|
}
|
||||||
if (TimerIO) {
|
if (TimerIO) {
|
||||||
|
// Wait for our port to be done communicating
|
||||||
|
WaitPort(TimerIO->tr_node.io_Message.mn_ReplyPort);
|
||||||
|
|
||||||
DeleteExtIO((struct IORequest *)TimerIO);
|
DeleteExtIO((struct IORequest *)TimerIO);
|
||||||
}
|
}
|
||||||
if (timerPort) {
|
if (timerPort) {
|
||||||
|
|
Loading…
Reference in New Issue