diff --git a/src/HttpServer.cc b/src/HttpServer.cc index c435c296..33abd0b8 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -245,6 +245,8 @@ public: auto session_id = next_session_id_; if (next_session_id_ == std::numeric_limits::max()) { next_session_id_ = 1; + } else { + ++next_session_id_; } return session_id; }