[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
throw new IOException("channel EOF");
} else if (count == 0) {
// TODO: need more accurate timeout?
- if (timeout != 0 && numWaits * WAIT_TIME > timeout) {
+ if ( 0 < timeout && numWaits * WAIT_TIME > timeout) {
Log.d("sdb", "write: timeout");
throw new TimeoutException();
}
doPull(
final FileEntry remote,
final OutputStream out,
- final ISyncProgressMonitor monitor,
+ ISyncProgressMonitor monitor,
final int timeOut
)
{
+ monitor = nvl( monitor, NullSyncProgressMonitor.getInstance() );
+
// access the destination file
// create the stream to write in the file. We use a new try/catch block to differentiate