Follow-up

This commit is contained in:
Alexander Zinchuk 2021-07-21 17:50:26 +03:00
parent 73d2bc0696
commit 153607e3df

View File

@ -313,6 +313,8 @@ class TelegramClient {
this._borrowedSenderReleaseTimeouts[dcId] = undefined;
this._borrowedSenderPromises[dcId] = undefined;
// eslint-disable-next-line no-console
console.warn(`Disconnecting from file socket #${dcId}...`);
sender.disconnect();
}, BORROWED_SENDER_RELEASE_TIMEOUT);