Remove finalizer from Java Client.

This commit is contained in:
levlam 2023-04-26 16:15:44 +03:00
parent 132566b393
commit 419a28125b

View File

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