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 #7462 from EOSIO/fix_timer_assign_17x_v2
Browse files Browse the repository at this point in the history
fix assignment during timer creation - 1.7
  • Loading branch information
arhag authored Jun 4, 2019
2 parents e6cee03 + ce1220f commit c144376
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 c144376

Please sign in to comment.