2
0
mirror of synced 2025-02-02 09:34:45 +00:00

Remove db listener when an error occurs as it is removed internally by Firebase (iOS)

This commit is contained in:
Chris Bianca 2017-03-09 16:46:02 +00:00
parent b02bcbd9cf
commit 25e4d39a16

View File

@ -50,6 +50,7 @@
}; };
id errorBlock = ^(NSError * _Nonnull error) { id errorBlock = ^(NSError * _Nonnull error) {
NSLog(@"Error onDBEvent: %@", [error debugDescription]); NSLog(@"Error onDBEvent: %@", [error debugDescription]);
[self unsetListeningOn:eventName];
[self getAndSendDatabaseError:error [self getAndSendDatabaseError:error
path:_path path:_path
modifiersString:_modifiersString]; modifiersString:_modifiersString];