kopia lustrzana https://github.com/ge0rg/aprsdroid
reduce the reconnect timeout
rodzic
09d00a7bdd
commit
5de82a0c5b
|
@ -97,10 +97,10 @@ class BluetoothTnc(service : AprsService, prefs : PrefsWrapper) extends AprsIsUp
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
case e : Exception =>
|
case e : Exception =>
|
||||||
Log.d(TAG, "Exception" + e)
|
e.printStackTrace()
|
||||||
Log.d(TAG, "reconnecting in 30s")
|
Log.d(TAG, "reconnecting in 3s")
|
||||||
try {
|
try {
|
||||||
Thread.sleep(30*1000)
|
Thread.sleep(3*1000)
|
||||||
init_socket()
|
init_socket()
|
||||||
} catch { case _ => }
|
} catch { case _ => }
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue