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 { } 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 _ => }
} }