Commit abd8bc7
committed
fix(active-job): Handle missing CLOCK_THREAD_CPUTIME_ID on JRuby
Use defined? guard instead of begin/rescue since JRuby raises
NameError (constant doesn't exist) rather than Errno::EINVAL.1 parent dd3c094 commit abd8bc7
1 file changed
Lines changed: 2 additions & 3 deletions
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
0 commit comments