From afc8192ae4083a27eb358e798242ae0f3446b201 Mon Sep 17 00:00:00 2001 From: Davud Date: Mon, 20 Jan 2020 11:17:25 +0330 Subject: [PATCH] Set connectionFailed to Print error log by default. --- .../java/com/phelat/poolakey/callback/ConnectionCallback.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poolakey/src/main/java/com/phelat/poolakey/callback/ConnectionCallback.kt b/poolakey/src/main/java/com/phelat/poolakey/callback/ConnectionCallback.kt index 1732540..2f8a885 100644 --- a/poolakey/src/main/java/com/phelat/poolakey/callback/ConnectionCallback.kt +++ b/poolakey/src/main/java/com/phelat/poolakey/callback/ConnectionCallback.kt @@ -9,7 +9,7 @@ class ConnectionCallback(private val disconnect: () -> Unit) : Connection { internal var connectionSucceed: () -> Unit = {} - internal var connectionFailed: (throwable: Throwable) -> Unit = {} + internal var connectionFailed: (throwable: Throwable) -> Unit = Throwable::printStackTrace internal var disconnected: () -> Unit = {}