mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
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:
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?
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user