diff --git a/Firebase/Database/Realtime/FWebSocketConnection.m b/Firebase/Database/Realtime/FWebSocketConnection.m index d728bdd1b87..c4ead9e48bf 100644 --- a/Firebase/Database/Realtime/FWebSocketConnection.m +++ b/Firebase/Database/Realtime/FWebSocketConnection.m @@ -163,7 +163,7 @@ - (void) send:(NSDictionary *)dictionary { } - (void) nop:(NSTimer *)timer { - if(self.webSocket) { + if (!isClosed) { FFLog(@"I-RDB083004", @"(wsc:%@) nop", self.connectionId); [self.webSocket send:@"0"]; }