1
0
Fork 0

Ensure we're done with the timer before destroying

This commit is contained in:
John Bintz 2022-11-25 14:00:23 -05:00
parent 6fdb1bf698
commit 245c7a9dbb
2 changed files with 3 additions and 0 deletions

BIN
main

Binary file not shown.

3
main.c
View File

@ -190,6 +190,9 @@ void teardown(void) {
FreeSignal(waitForSoundSignalNumber);
}
if (TimerIO) {
// Wait for our port to be done communicating
WaitPort(TimerIO->tr_node.io_Message.mn_ReplyPort);
DeleteExtIO((struct IORequest *)TimerIO);
}
if (timerPort) {