You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Cancel all of the currently running operations
[operationQueue cancelAllOperations];
// Loop the cached export file paths and remove them from disk if they existfor (SPExportFile *file in exportFiles)
{
[file delete];
}
cancelAllOperations is async and whether an operation actually reacts to cancellation is still up to the operation. This means while [file delete] is running another thread could still be writing to that file.
dmoagx
changed the title
-[SPExportController cancelExport:] does not wait until until queue is actually empty
-[SPExportController cancelExport:] does not wait until queue is actually empty
Aug 2, 2015
Code in question:
cancelAllOperations
is async and whether an operation actually reacts to cancellation is still up to the operation. This means while[file delete]
is running another thread could still be writing to that file.Reports:
(all erroneously grouped with other issues – feedback reporter causes a crash and hides the real issue ;see console log)
http://log.sequelpro.com/view/4878
http://log.sequelpro.com/view/4400
http://log.sequelpro.com/view/2036
Exception:
The text was updated successfully, but these errors were encountered: