make sure there's no codepath that escapes ".close()"

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3567 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-06-26 16:16:26 +00:00
1 parent c7b0bc7868
commit fbbb320a73
1 file changed
+5 -2
@@ -23,8 +23,11 @@ public class StreamCopyThread extends Thread {
public void run() {
try {
Util.copyStream(in,out);
in.close();
try {
Util.copyStream(in,out);
} finally {
in.close();
}
} catch (IOException e) {
// TODO: what to do?
}