Commit c57e9f75 authored by Felix Paul Kühne's avatar Felix Paul Kühne

WiFi Upload: remove incomplete uploads if connection dies (close #9794)

parent 80a74adb
......@@ -210,7 +210,14 @@
- (void)die
{
APLog(@"we will die");
if (_storeFile) {
_storeFile = nil;
[[NSFileManager defaultManager] removeItemAtPath:_filepath error:nil];
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
[(VLCAppDelegate*)[UIApplication sharedApplication].delegate activateIdleTimer];
}
[super die];
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment