ok this seems stable
This commit is contained in:
parent
245c7a9dbb
commit
7b341036eb
6
main.c
6
main.c
|
@ -190,8 +190,10 @@ void teardown(void) {
|
||||||
FreeSignal(waitForSoundSignalNumber);
|
FreeSignal(waitForSoundSignalNumber);
|
||||||
}
|
}
|
||||||
if (TimerIO) {
|
if (TimerIO) {
|
||||||
// Wait for our port to be done communicating
|
// if the timer's still running, wait for it to be done
|
||||||
WaitPort(TimerIO->tr_node.io_Message.mn_ReplyPort);
|
if (!CheckIO((struct IORequest *)TimerIO)) {
|
||||||
|
WaitIO((struct IORequest *)TimerIO);
|
||||||
|
}
|
||||||
|
|
||||||
DeleteExtIO((struct IORequest *)TimerIO);
|
DeleteExtIO((struct IORequest *)TimerIO);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue