mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
NetworkMonitor: better "retry" messages
This commit is contained in:
parent
7b7f26f9d2
commit
21ca1cd9c5
@ -100,12 +100,12 @@ public class NetworkMonitor extends AbstractMonitor {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(500);
|
Thread.sleep(1000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
if (channel.isConnected()) {
|
if (channel.isConnected()) {
|
||||||
NetworkMonitor.this.message(_("Connected!"));
|
NetworkMonitor.this.message(_("connected!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ public class NetworkMonitor extends AbstractMonitor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (connectionAttempts < MAX_CONNECTION_ATTEMPTS) {
|
if (connectionAttempts < MAX_CONNECTION_ATTEMPTS) {
|
||||||
s = _("Unable to connect: retrying (" + connectionAttempts + ")...") + "\n";
|
s = "\n" + _("Unable to connect: retrying (" + connectionAttempts + ")... ");
|
||||||
|
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@ -139,7 +139,7 @@ public class NetworkMonitor extends AbstractMonitor {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
s = _("Unable to connect: is the sketch using the bridge?") + "\n";
|
s = "\n" + _("Unable to connect: is the sketch using the bridge?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
super.message(s);
|
super.message(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user