Skip to content

Commit 48a823d

Browse files
committed
Do not check internet connection on the postponed telemetry // Resolve platformio#4706
1 parent f8b5266 commit 48a823d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

platformio/telemetry.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from platformio import __title__, __version__, app, exception, fs, util
2828
from platformio.cli import PlatformioCLI
2929
from platformio.debug.config.base import DebugConfigBase
30-
from platformio.http import HTTPSession, ensure_internet_on
30+
from platformio.http import HTTPSession
3131
from platformio.proc import is_ci
3232

3333
KEEP_MAX_REPORTS = 100
@@ -363,8 +363,6 @@ def postpone_events(events):
363363

364364

365365
def process_postponed_logs():
366-
if not ensure_internet_on():
367-
return None
368366
events = load_postponed_events()
369367
if not events:
370368
return None
@@ -378,4 +376,5 @@ def process_postponed_logs():
378376
timestamp=event["timestamp"],
379377
instant_sending=False,
380378
)
379+
telemetry.send()
381380
return True

0 commit comments

Comments
 (0)