Closed wrharper-AASP closed 1 year ago
A crash can't be "a false positive". You must not call Client.Run() more than once. It is supposed to be called on a dedicated thread, which will handle updates and responses from all TDLib instances.
ok, it appeared that way since it worked every time anyway. I dropped the call down to this and did what you said, no errors now. thanks
public void CreateTelegramThread()
{
TelegramBase._needQuit = false;
TelegramBase.EndLoop = false;
TelegramBase.alreadyrunning = false;
TelegramBase.runonce = false;
// create Td.Client
AuthRequest ar = new();
TelegramBase.client = TelegramGlobals.CreateTdClient(this, ar);
}
created:
Call it with:
The crash is actually a false positive because it still runs, works, and even closes the connection properly with the error message up. How can I stop it from popping up after a 2nd run?