Fix for double sessions in sessionstate

This commit is contained in:
FlorianDahn 2021-02-19 15:03:28 +01:00
parent 80d43ac369
commit 7e51126fd3

View File

@ -149,6 +149,10 @@ namespace TelegramBotBase
continue;
}
//Key already existing
if (this.SessionList.ContainsKey(s.DeviceId))
continue;
var form = t.GetConstructor(new Type[] { })?.Invoke(new object[] { }) as FormBase;
//No default constructor, fallback