aboutsummaryrefslogtreecommitdiff
path: root/ftp/downloader/files/patch-main__sndserv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/downloader/files/patch-main__sndserv.cc')
-rw-r--r--ftp/downloader/files/patch-main__sndserv.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/ftp/downloader/files/patch-main__sndserv.cc b/ftp/downloader/files/patch-main__sndserv.cc
new file mode 100644
index 000000000000..f592ea1f08dd
--- /dev/null
+++ b/ftp/downloader/files/patch-main__sndserv.cc
@@ -0,0 +1,22 @@
+--- main/sndserv.cc.orig Fri Jan 28 22:41:59 2005
++++ main/sndserv.cc Sun Oct 2 00:04:43 2005
+@@ -522,8 +522,8 @@
+ };
+
+ void d4xSndServer::run(){
+- my_mutex.lock();
+ while(1){
++ my_mutex.lock();
+ pthread_cond_wait(&cond,&(my_mutex.m));
+ std::list<d4x::SndEvent> tmpqueue=queue;
+ queue.clear();
+@@ -538,9 +538,7 @@
+ tmpqueue.pop_front();
+ };
+ if (stop_now) break;
+- my_mutex.unlock();
+ };
+- my_mutex.unlock();
+ };
+
+ void d4xSndServer::set_sound_file(int event,char *path){