mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 04:45:21 +00:00
fixed
This commit is contained in:
@@ -128,7 +128,7 @@ class BluetoothConnectionManager(
|
||||
|
||||
try {
|
||||
isActive = true
|
||||
// setupGattServer()
|
||||
setupGattServer()
|
||||
|
||||
// Start power manager and services
|
||||
connectionScope.launch {
|
||||
|
||||
@@ -350,10 +350,7 @@ class BluetoothMeshService(private val context: Context) {
|
||||
)
|
||||
|
||||
// Send with random delay and retry for reliability
|
||||
delay(Random.nextLong(50, 500))
|
||||
connectionManager.broadcastPacket(packet)
|
||||
|
||||
delay(300 + Random.nextLong(0, 200))
|
||||
// delay(Random.nextLong(50, 500))
|
||||
connectionManager.broadcastPacket(packet)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user