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