h2load: Stop timeout_watcher in Worker dtor

This commit is contained in:
Tatsuhiro Tsujikawa 2015-08-11 23:51:08 +09:00
parent dd97b53554
commit b406d2da9e
1 changed files with 2 additions and 0 deletions

View File

@ -754,6 +754,8 @@ Worker::Worker(uint32_t id, SSL_CTX *ssl_ctx, size_t req_todo, size_t nclients,
} }
Worker::~Worker() { Worker::~Worker() {
ev_timer_stop(loop, &timeout_watcher);
// first clear clients so that io watchers are stopped before // first clear clients so that io watchers are stopped before
// destructing ev_loop. // destructing ev_loop.
clients.clear(); clients.clear();