Fix possible NullRef with _bareRpc

This commit is contained in:
Wizou 2022-06-15 12:21:22 +02:00
parent 8898308d9c
commit 823a414839
2 changed files with 2 additions and 2 deletions

2
.github/dev.yml vendored
View file

@ -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

View file

@ -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