Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7456 from EOSIO/fix_timer_assign_16x
Browse files Browse the repository at this point in the history
fix assignment during timer creation - 1.6
  • Loading branch information
arhag authored Jun 4, 2019
2 parents 895e47a + 9b0e8fc commit ca8cc91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/chain/transaction_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ namespace bacc = boost::accumulators;
else {
struct itimerval enable = {{0, 0}, {0, (int)x.count()-deadline_timer_verification.timer_overhead}};
expired = 0;
expired |= !!setitimer(ITIMER_REAL, &enable, NULL);
if(setitimer(ITIMER_REAL, &enable, NULL))
expired = 1;
}
}

Expand Down

0 comments on commit ca8cc91

Please sign in to comment.