| 174 | } |
| 175 | |
| 176 | Result close() |
| 177 | { |
| 178 | Result result(true); |
| 179 | auto preserveFirstError = [&result](Result closeResult) |
| 180 | { |
| 181 | if (not closeResult and result) |
| 182 | { |
| 183 | result = closeResult; |
| 184 | } |
| 185 | }; |
| 186 | |
| 187 | { |
| 188 | preserveFirstError(eventLoopMonitor.close()); |
| 189 | } |
| 190 | if (timeout.isActive()) |
| 191 | { |
| 192 | preserveFirstError(timeout.stop(eventLoop)); |
| 193 | } |
| 194 | { |
| 195 | preserveFirstError(hotReloadSystem.close()); |
| 196 | } |
| 197 | { |
| 198 | preserveFirstError(eventLoop.close()); |
| 199 | } |
| 200 | return result; |
| 201 | } |
| 202 | |
| 203 | private: |
| 204 | AsyncEventLoop eventLoop; |
no test coverage detected