Skip to content

Commit

Permalink
isInUse should also check inputstream and outputstream
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Aug 6, 2014
1 parent 0aab128 commit 82d4b6a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ public StagedResource(long threshold, File directory, String path, StagingManage
}

public boolean isInUse() {
return readers.size() > 0 || writers.size() > 0;
return readers.size() > 0 || writers.size() > 0 ||
(inputStreams != null && inputStreams.size() > 0) ||
(outputStreams != null && outputStreams.size() > 0);
}

public boolean isFileResource() {
Expand Down

0 comments on commit 82d4b6a

Please sign in to comment.