diff --git a/.github/dev.yml b/.github/dev.yml index 1bb91a7..def4305 100644 --- a/.github/dev.yml +++ b/.github/dev.yml @@ -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 diff --git a/src/Client.cs b/src/Client.cs index 507c351..0e1c651 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -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