()
| 162 | } |
| 163 | |
| 164 | private long getCurrentCount() { |
| 165 | while (true) { |
| 166 | try { |
| 167 | var r = new GetCount(); |
| 168 | agent.sendForWait(r).await(); |
| 169 | if (!r.isTimeout() && r.getResultCode() == 0) |
| 170 | return r.Result.count; |
| 171 | } catch (Exception ignored) { |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | private void errorsAdd(long resultCode) { |
| 177 | if (resultCode == 0) |
no test coverage detected