File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ namespace web { namespace http
137
137
std::mutex m_connections_mutex;
138
138
};
139
139
140
- class linux_client_request_context : public request_context , public std ::enable_shared_from_this<linux_client_request_context>
140
+ class linux_client_request_context : public request_context
141
141
{
142
142
public:
143
143
static std::shared_ptr<request_context> create_request_context (std::shared_ptr<_http_client_communicator> &client, http_request &request);
@@ -185,14 +185,14 @@ namespace web { namespace http
185
185
void set_timer (const int secs)
186
186
{
187
187
m_timeout_timer.expires_from_now (boost::posix_time::milliseconds (secs * 1000 ));
188
- m_timeout_timer.async_wait (boost::bind (&linux_client_request_context::handle_timeout_timer, shared_from_this () , boost::asio::placeholders::error));
188
+ m_timeout_timer.async_wait (boost::bind (&linux_client_request_context::handle_timeout_timer, this , boost::asio::placeholders::error));
189
189
}
190
190
191
191
void reset_timer (const int secs)
192
192
{
193
193
if (m_timeout_timer.expires_from_now (boost::posix_time::milliseconds (secs * 1000 )) > 0 )
194
194
{
195
- m_timeout_timer.async_wait (boost::bind (&linux_client_request_context::handle_timeout_timer, shared_from_this () , boost::asio::placeholders::error));
195
+ m_timeout_timer.async_wait (boost::bind (&linux_client_request_context::handle_timeout_timer, this , boost::asio::placeholders::error));
196
196
}
197
197
}
198
198
You can’t perform that action at this time.
0 commit comments