Skip to content

Commit 6b99bcc

Browse files
committed
reset l2's after background throttling
1 parent ca9a69a commit 6b99bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets_js_bitrequest_sockets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function reconnect_websocket(recon_data) {
330330
// Reconnects if websocket got lost in background (Only apply for mobile devices)
331331
function foreground_reconnect() {
332332
if (!glob_const.supportsTouch) return
333-
if (helper.l1_status === true) return
333+
if (!request.eth_l2s.length && helper.l1_status === true) return
334334
const api_settings = q_obj(request, "coinsettings.apis.selected");
335335
if (api_settings) {
336336
force_close_socket();

0 commit comments

Comments
 (0)