Fix immediate crash 🤦🏻‍♂️

This commit is contained in:
Wizou 2022-11-13 00:25:56 +01:00
parent fe5773ce29
commit 61510465d2

View file

@ -104,7 +104,7 @@ namespace WTelegram
_dcSession ??= new() { Id = Helpers.RandomLong() };
_dcSession.Client = this;
var version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
Helpers.Log(1, $"WTelegramClient {version[..version.IndexOf('+')]} running under {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
Helpers.Log(1, $"WTelegramClient {version} running under {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
}
private Client(Client cloneOf, Session.DCSession dcSession)