[P-unit-devel] SF.net SVN: p-unit: [239] trunk/punit/src/org/punit/method/runner/ AbstractMethodRun
Status: Beta
Brought to you by:
zhanghuangzhu
From: <zha...@us...> - 2007-10-15 11:24:04
|
Revision: 239 http://p-unit.svn.sourceforge.net/p-unit/?rev=239&view=rev Author: zhanghuangzhu Date: 2007-10-15 04:24:07 -0700 (Mon, 15 Oct 2007) Log Message: ----------- Andrew Zhang: set toStopThread to null immediately after close. Modified Paths: -------------- trunk/punit/src/org/punit/method/runner/AbstractMethodRunner.java Modified: trunk/punit/src/org/punit/method/runner/AbstractMethodRunner.java =================================================================== --- trunk/punit/src/org/punit/method/runner/AbstractMethodRunner.java 2007-10-14 14:00:32 UTC (rev 238) +++ trunk/punit/src/org/punit/method/runner/AbstractMethodRunner.java 2007-10-15 11:24:07 UTC (rev 239) @@ -126,6 +126,7 @@ private void stopToStopThread() { if (_toStopThread != null) { _toStopThread.close(); + _toStopThread = null; } } @@ -175,9 +176,7 @@ } }, toWork); _shouldStop = false; - } else { - _toStopThread = null; - } + } } public boolean shouldStop() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |