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