diff --git a/src/conio/cterm.c b/src/conio/cterm.c
index 15e66a4f52d1c39d44cc93bf2b8711d534f3fd99..99c4bd38c2069a86666043a44f30644fe1a62b2a 100644
--- a/src/conio/cterm.c
+++ b/src/conio/cterm.c
@@ -190,7 +190,7 @@ void playnote_thread(void *args)
 	playnote_thread_running=TRUE;
 	while(1) {
 		if(device_open) {
-			if(listSemTryWaitBlock(&notes,5000)) {
+			if(!listSemTryWaitBlock(&notes,5000)) {
 				xptone_close();
 				device_open=FALSE;
 				listSemWait(&notes);