changeset in /hg/pulseaudio: 2008-08-20 Omair Majid <omajid at redh...

Omair Majid omajid at redhat.com
Wed Aug 27 09:05:26 PDT 2008


changeset c1154939ba8b in /hg/pulseaudio
details: http://icedtea.classpath.org/hg/pulseaudio?cmd=changeset;node=c1154939ba8b
description:
	2008-08-20 Omair Majid <omajid at redhat.com>

	    * src/java/org/classpath/icedtea/pulseaudio/Operation.java
	      (waitForCompletion): Fixed race condition.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/java/org/classpath/icedtea/pulseaudio/Operation.java |    4 +++-

diffs (14 lines):

diff -r c9268e180613 -r c1154939ba8b src/java/org/classpath/icedtea/pulseaudio/Operation.java
--- a/src/java/org/classpath/icedtea/pulseaudio/Operation.java	Wed Aug 20 11:53:39 2008 -0400
+++ b/src/java/org/classpath/icedtea/pulseaudio/Operation.java	Wed Aug 20 13:34:24 2008 -0400
@@ -136,7 +136,9 @@ public class Operation {
 
 		do {
 			synchronized (eventLoop.threadLock) {
-
+				if (getState() == Operation.State.Done) {
+					return;
+				}
 				try {
 					eventLoop.threadLock.wait();
 				} catch (InterruptedException e) {



More information about the distro-pkg-dev mailing list