Fixed possible hang issue.
This commit is contained in:
parent
1b39f30fd0
commit
da7af895fb
@ -367,7 +367,7 @@ namespace AaxDecrypter
|
|||||||
|
|
||||||
//read operation will block until file contains enough data
|
//read operation will block until file contains enough data
|
||||||
//to fulfil the request.
|
//to fulfil the request.
|
||||||
while (requiredPosition > WritePosition)
|
while (requiredPosition > WritePosition && !isCancelled)
|
||||||
Thread.Sleep(0);
|
Thread.Sleep(0);
|
||||||
|
|
||||||
return _readFile.Read(buffer, offset, count);
|
return _readFile.Read(buffer, offset, count);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user