mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-09 10:10:37 +01:00
Fix possible NullRef with _bareRpc
This commit is contained in:
parent
8898308d9c
commit
823a414839
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -2,7 +2,7 @@ pr: none
|
|||
trigger:
|
||||
- master
|
||||
|
||||
name: 2.5.1-dev.$(Rev:r)
|
||||
name: 2.5.2-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -630,7 +630,7 @@ namespace WTelegram
|
|||
}
|
||||
else if (PullPendingRequest(badMsgNotification.bad_msg_id) is Rpc rpc)
|
||||
{
|
||||
if (_bareRpc.msgId == badMsgNotification.bad_msg_id) _bareRpc = null;
|
||||
if (_bareRpc?.msgId == badMsgNotification.bad_msg_id) _bareRpc = null;
|
||||
rpc.tcs.SetException(new ApplicationException($"BadMsgNotification {badMsgNotification.error_code}"));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue