proxy server: add missing listener type

This commit is contained in:
Adrien Béraud committed 2020-05-19 19:52:51 -04:00
1 parent 19ccc3a327
commit e3cd2a9d02
1 file changed
+1
+1
View File
@@ -832,6 +832,7 @@ DhtProxyServer::subscribe(restinio::request_handle_t request,
// Expiration
auto timeout = std::chrono::steady_clock::now() + proxy::OP_TIMEOUT;
listener.expiration = timeout;
listener.type = type;
if (listener.expireNotifyTimer)
listener.expireNotifyTimer->expires_at(timeout - proxy::OP_MARGIN);
else