1
0
Fork 0

ok this seems stable

This commit is contained in:
John Bintz 2022-11-25 14:33:31 -05:00
parent 245c7a9dbb
commit 7b341036eb
2 changed files with 4 additions and 2 deletions

BIN
main

Binary file not shown.

6
main.c
View File

@ -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);
} }