mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Bug 778159 Remove SUTAgent network-verification ping. r=wlach
This commit is contained in:
parent
fe84423ccf
commit
216e84af02
@ -47,8 +47,6 @@ public class RunCmdThread extends Thread
|
||||
|
||||
public void run() {
|
||||
try {
|
||||
int nIterations = 0;
|
||||
|
||||
SvrSocket.setSoTimeout(5000);
|
||||
while (bListening)
|
||||
{
|
||||
@ -61,16 +59,6 @@ public class RunCmdThread extends Thread
|
||||
}
|
||||
catch (SocketTimeoutException toe)
|
||||
{
|
||||
if (++nIterations > 60)
|
||||
{
|
||||
nIterations = 0;
|
||||
String sRet = SendPing("www.mozilla.org");
|
||||
if (sRet.contains("3 received"))
|
||||
handler.post(new doCancelNotification());
|
||||
else
|
||||
handler.post(new doSendNotification("SUTAgent - Network Connectivity Error", sRet));
|
||||
sRet = null;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
catch (IOException e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user