()
| 102 | let retryTimeoutID: TimeoutID | null = null; |
| 103 | |
| 104 | function scheduleRetry() { |
| 105 | if (retryTimeoutID === null) { |
| 106 | // Two seconds because RN had issues with quick retries. |
| 107 | retryTimeoutID = setTimeout( |
| 108 | () => connectToDevTools(options), |
| 109 | retryConnectionDelay, |
| 110 | ); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | if (!isAppActive()) { |
| 115 | // If the app is in background, maybe retry later. |
no test coverage detected