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);