Skip to content

Commit

Permalink
Fix uncompressed export causing a crash (issue introduced by me 2 com…
Browse files Browse the repository at this point in the history
…mits ago in 1dedadc)
  • Loading branch information
dmoagx committed Oct 8, 2015
1 parent 71c013d commit 602c224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/SPFileHandle.m
Expand Up @@ -145,6 +145,7 @@ - (id)initWithFile:(FILE *)theFile fromPath:(const char *)path mode:(int)mode
}
// In write mode, set up a thread to handle writing in the background
else if (fileMode == O_WRONLY) {
wrappedFile->file = theFile; // can be changed later via setCompressionFormat:
processingThread = [[NSThread alloc] initWithTarget:self selector:@selector(_writeBufferToData) object:nil];
[processingThread setName:@"SPFileHandle data writing thread"];
[processingThread start];
Expand Down

0 comments on commit 602c224

Please sign in to comment.