Fix for double sessions in sessionstate
This commit is contained in:
parent
80d43ac369
commit
7e51126fd3
@ -149,6 +149,10 @@ namespace TelegramBotBase
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Key already existing
|
||||||
|
if (this.SessionList.ContainsKey(s.DeviceId))
|
||||||
|
continue;
|
||||||
|
|
||||||
var form = t.GetConstructor(new Type[] { })?.Invoke(new object[] { }) as FormBase;
|
var form = t.GetConstructor(new Type[] { })?.Invoke(new object[] { }) as FormBase;
|
||||||
|
|
||||||
//No default constructor, fallback
|
//No default constructor, fallback
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user