mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-17 04:38:10 +00:00
MtApi5: fixed issue with active expert executor
This commit is contained in:
@@ -3386,6 +3386,8 @@ namespace MtApi5
|
|||||||
lock (_locker)
|
lock (_locker)
|
||||||
{
|
{
|
||||||
added = _experts.Add(handle);
|
added = _experts.Add(handle);
|
||||||
|
if (_executorHandle == 0)
|
||||||
|
_executorHandle = (_experts.Count > 0) ? _experts.ElementAt(0) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (added)
|
if (added)
|
||||||
|
|||||||
Reference in New Issue
Block a user