File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ namespace
366
366
auto data = msg.msg ->get_body (size);
367
367
368
368
const auto asyncResult = _walletApi->executeAPIRequest (reinterpret_cast <const char *>(data), size);
369
- _keepalive = asyncResult == ApiSyncMode::RunningAsync;
369
+ _keepalive = _keepalive || asyncResult == ApiSyncMode::RunningAsync;
370
370
}
371
371
372
372
if (!_keepalive)
Original file line number Diff line number Diff line change @@ -182,15 +182,15 @@ namespace beam::wallet
182
182
183
183
bool BaseTransaction::CanCancel () const
184
184
{
185
- TxStatus status = TxStatus::Failed ;
185
+ TxStatus status = TxStatus::Pending ;
186
186
GetParameter (TxParameterID::Status, status);
187
187
188
188
return status == TxStatus::InProgress || status == TxStatus::Pending;
189
189
}
190
190
191
191
void BaseTransaction::Cancel ()
192
192
{
193
- TxStatus s = TxStatus::Failed ;
193
+ TxStatus s = TxStatus::Pending ;
194
194
GetParameter (TxParameterID::Status, s);
195
195
// TODO: add CanCancel() method
196
196
if (s == TxStatus::Pending || s == TxStatus::InProgress)
You can’t perform that action at this time.
0 commit comments