Skip to content

Commit

Permalink
proxyserver: set permanent put pushToken
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Blin authored and aberaud committed Jan 28, 2020
1 parent 8597267 commit 5cfcf48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dht_proxy_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ DhtProxyServer::put(restinio::request_handle_t request,
pput.expireTimer = std::make_unique<asio::steady_timer>(ctx, timeout);
#ifdef OPENDHT_PUSH_NOTIFICATIONS
if (not pushToken.empty()){
pput.pushToken = pushToken;
pput.sessionCtx = std::make_shared<PushSessionContext>();
pput.sessionCtx->sessionId = sessionId;
// notify push listen expire
Expand Down

0 comments on commit 5cfcf48

Please sign in to comment.