mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 02:16:35 +02:00
Ignores brb.io if in the relay list. It's crashing the app too much with a weird implementation of the WebSockets protocol
This commit is contained in:
@@ -85,6 +85,9 @@ class Relay(
|
|||||||
private var connectingBlock = AtomicBoolean()
|
private var connectingBlock = AtomicBoolean()
|
||||||
|
|
||||||
fun connectAndRun(onConnected: (Relay) -> Unit) {
|
fun connectAndRun(onConnected: (Relay) -> Unit) {
|
||||||
|
// BRB is crashing OkHttp Deflater object :(
|
||||||
|
if (url.contains("brb.io")) return
|
||||||
|
|
||||||
// If there is a connection, don't wait.
|
// If there is a connection, don't wait.
|
||||||
if (connectingBlock.getAndSet(true)) {
|
if (connectingBlock.getAndSet(true)) {
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user