File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1185,9 +1185,8 @@ void networkInterfaceInternetConnectionAvailable(NetIndex_t index)
1185
1185
// Avoids an infinite start/stop loop
1186
1186
if (networkSeqStopping & bitMask)
1187
1187
{
1188
- // if (settings.debugNetworkLayer)
1189
- systemPrintf (" \r\n !!! %s stop sequencer running, not marking interface online\r\n " ,
1190
- networkGetNameByIndex (index));
1188
+ if (settings.debugNetworkLayer )
1189
+ systemPrintf (" %s stop sequencer running, not marking interface online\r\n " , networkGetNameByIndex (index));
1191
1190
return ;
1192
1191
}
1193
1192
@@ -1280,6 +1279,16 @@ void networkInterfaceInternetConnectionLost(NetIndex_t index)
1280
1279
1281
1280
// Mark this network as offline
1282
1281
bitMask = 1 << index;
1282
+
1283
+ // If we are currently running a start sequence, do nothing
1284
+ // Avoids an infinite start/stop loop
1285
+ if (networkSeqStarting & bitMask)
1286
+ {
1287
+ if (settings.debugNetworkLayer )
1288
+ systemPrintf (" %s start sequencer running, not marking interface offline\r\n " , networkGetNameByIndex (index));
1289
+ return ;
1290
+ }
1291
+
1283
1292
networkHasInternet_bm &= ~bitMask;
1284
1293
if (settings.debugNetworkLayer )
1285
1294
systemPrintf (" %s does NOT have internet access\r\n " , networkInterfaceTable[index].name );
You can’t perform that action at this time.
0 commit comments