File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
firebase-config/src/main/java/com/google/firebase/remoteconfig/internal Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ public synchronized void beginRealtimeHttpStream() {
329
329
return ;
330
330
}
331
331
332
- int responseCode = 0 ;
332
+ Integer responseCode = null ;
333
333
try {
334
334
// Create the open the connection.
335
335
httpURLConnection = createRealtimeConnection ();
@@ -349,8 +349,9 @@ public synchronized void beginRealtimeHttpStream() {
349
349
} finally {
350
350
closeRealtimeHttpStream ();
351
351
352
- // If responseCode is 0 then no connection was made to server and the SDK should still retry.
353
- if (responseCode == 0
352
+ // If responseCode is null then no connection was made to server and the SDK should still
353
+ // retry.
354
+ if (responseCode == null
354
355
|| responseCode == HttpURLConnection .HTTP_OK
355
356
|| isStatusCodeRetryable (responseCode )) {
356
357
retryHTTPConnection ();
You can’t perform that action at this time.
0 commit comments