20ced9f
diff -up speech-dispatcher-0.8/src/modules/festival.c.cancel speech-dispatcher-0.8/src/modules/festival.c
20ced9f
--- speech-dispatcher-0.8/src/modules/festival.c.cancel	2013-11-01 23:27:26.912804470 -0400
20ced9f
+++ speech-dispatcher-0.8/src/modules/festival.c	2013-11-01 23:27:03.688847395 -0400
20ced9f
@@ -469,7 +469,8 @@ int module_close(void)
20ced9f
 	// festivalClose(festival_info);
20ced9f
 
20ced9f
 	DBG("Terminating threads");
20ced9f
-	module_terminate_thread(festival_speak_thread);
20ced9f
+	if (festival_speak_thread)
20ced9f
+		module_terminate_thread(festival_speak_thread);
20ced9f
 
20ced9f
 	if (festival_info)
20ced9f
 		delete_FT_Info(festival_info);