mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Core: don't consider MediaOnly DCs at reconnect
Fixes https://github.com/sochix/TLSharp/issues/935
(This commit was brought from TLSharp [1] version 0.1.0.554.)
[1] 9a6e391cae
This commit is contained in:
parent
e5a6991612
commit
874cfd07a2
|
|
@ -121,6 +121,8 @@ namespace TgSharp.Core
|
||||||
else
|
else
|
||||||
dcs = dcOptions.Where(d => d.Id == dcId); // any
|
dcs = dcOptions.Where(d => d.Id == dcId); // any
|
||||||
|
|
||||||
|
dcs = dcs.Where (d => !d.MediaOnly);
|
||||||
|
|
||||||
TLDcOption dc;
|
TLDcOption dc;
|
||||||
if (dcIpVersion != DataCenterIPVersion.Default)
|
if (dcIpVersion != DataCenterIPVersion.Default)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue