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);
|
||||
}
|
||||
if (TimerIO) {
|
||||
// Wait for our port to be done communicating
|
||||
WaitPort(TimerIO->tr_node.io_Message.mn_ReplyPort);
|
||||
// if the timer's still running, wait for it to be done
|
||||
if (!CheckIO((struct IORequest *)TimerIO)) {
|
||||
WaitIO((struct IORequest *)TimerIO);
|
||||
}
|
||||
|
||||
DeleteExtIO((struct IORequest *)TimerIO);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue