| 230 | } |
| 231 | |
| 232 | void I2PService::Shutdown() |
| 233 | { |
| 234 | try |
| 235 | { |
| 236 | OnShutdown(); |
| 237 | SetServiceStatus(SERVICE_STOPPED); |
| 238 | } |
| 239 | catch (DWORD dwError) |
| 240 | { |
| 241 | LogPrint(eLogCritical, "Win32Service: Shutdown error: ", dwError); |
| 242 | } |
| 243 | catch (...) |
| 244 | { |
| 245 | LogPrint(eLogCritical, "Win32Service: Failed to shut down: ", EVENTLOG_ERROR_TYPE); |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | void I2PService::OnShutdown() |
| 250 | { |
no test coverage detected