From 419a28125b4a5ac6e9c5c8eee01d6083f6559b27 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 26 Apr 2023 16:15:44 +0300 Subject: [PATCH] Remove finalizer from Java Client. --- example/java/org/drinkless/tdlib/Client.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/example/java/org/drinkless/tdlib/Client.java b/example/java/org/drinkless/tdlib/Client.java index 2e13c5b67..2dd324f13 100644 --- a/example/java/org/drinkless/tdlib/Client.java +++ b/example/java/org/drinkless/tdlib/Client.java @@ -225,11 +225,6 @@ public final class Client { send(new TdApi.GetOption("version"), null, null); } - @Override - protected void finalize() throws Throwable { - send(new TdApi.Close(), null, null); - } - private static native int createNativeClient(); private static native void nativeClientSend(int nativeClientId, long eventId, TdApi.Function function);