Skip to content
Snippets Groups Projects
Commit e3cd2a9d authored by Adrien Béraud's avatar Adrien Béraud
Browse files

proxy server: add missing listener type

parent 19ccc3a3
No related branches found
No related tags found
No related merge requests found
...@@ -832,6 +832,7 @@ DhtProxyServer::subscribe(restinio::request_handle_t request, ...@@ -832,6 +832,7 @@ DhtProxyServer::subscribe(restinio::request_handle_t request,
// Expiration // Expiration
auto timeout = std::chrono::steady_clock::now() + proxy::OP_TIMEOUT; auto timeout = std::chrono::steady_clock::now() + proxy::OP_TIMEOUT;
listener.expiration = timeout; listener.expiration = timeout;
listener.type = type;
if (listener.expireNotifyTimer) if (listener.expireNotifyTimer)
listener.expireNotifyTimer->expires_at(timeout - proxy::OP_MARGIN); listener.expireNotifyTimer->expires_at(timeout - proxy::OP_MARGIN);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment