reduce the reconnect timeout

bluetooth_tnc
Georg Lukas 2011-05-08 02:54:34 +02:00
rodzic 09d00a7bdd
commit 5de82a0c5b
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -97,10 +97,10 @@ class BluetoothTnc(service : AprsService, prefs : PrefsWrapper) extends AprsIsUp
}
} catch {
case e : Exception =>
Log.d(TAG, "Exception" + e)
Log.d(TAG, "reconnecting in 30s")
e.printStackTrace()
Log.d(TAG, "reconnecting in 3s")
try {
Thread.sleep(30*1000)
Thread.sleep(3*1000)
init_socket()
} catch { case _ => }
}