From 7fc7417fbdf0fea2ab59dead0a5bffc3ed84b737 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 13 May 2020 16:25:19 +0200 Subject: [PATCH] Lock write bugfix --- src/main/java/it/ernytech/tdlib/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/ernytech/tdlib/Client.java b/src/main/java/it/ernytech/tdlib/Client.java index a92ce55..ab8ab0c 100644 --- a/src/main/java/it/ernytech/tdlib/Client.java +++ b/src/main/java/it/ernytech/tdlib/Client.java @@ -151,7 +151,7 @@ public class Client implements TelegramClient { */ @Override public void destroyClient() { - stampedLockValue = this.executionLock.writeLock(); + stampedLockValue = this.executionLock.tryWriteLock(); destroyNativeClient(this.clientId); }