diff --git a/src/conio/cterm.c b/src/conio/cterm.c index 9eb031cef14ed51a930025d92675f7e4e8bfbb06..cfec10b4aa42a286d2c66af369b4f8fe44032b60 100644 --- a/src/conio/cterm.c +++ b/src/conio/cterm.c @@ -1143,7 +1143,7 @@ void cterm_init(int height, int width, int xpos, int ypos, int backlines, unsign /* Did someone call _init() without calling _end()? */ if(playnote_thread_running) { if(sem_trywait(&playnote_thread_terminated)==-1) { - listPushNode(¬es, NULL); + listSemPost(¬es); sem_wait(&playnote_thread_terminated); } sem_destroy(&playnote_thread_terminated);