| 52 | } |
| 53 | |
| 54 | bool HttpServer::start() { |
| 55 | auto lock = mutex.asScopedLock(); |
| 56 | lock.lock(); |
| 57 | |
| 58 | if (isStarted()) { |
| 59 | LOGGER.warn("Already started"); |
| 60 | return true; |
| 61 | } |
| 62 | |
| 63 | return startInternal(); |
| 64 | } |
| 65 | |
| 66 | void HttpServer::stop() { |
| 67 | auto lock = mutex.asScopedLock(); |
nothing calls this directly
no test coverage detected