Skip to content

Commit 9a8d433

Browse files
authored
Revert "use SteadyTimer for cleaning up inactive streams (#45)" (#51)
This reverts commit ae74f19.
1 parent ae74f19 commit 9a8d433

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/web_video_server/web_video_server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class WebVideoServer
5151
void cleanup_inactive_streams();
5252

5353
ros::NodeHandle nh_;
54-
ros::SteadyTimer cleanup_timer_;
54+
ros::Timer cleanup_timer_;
5555
int ros_threads_;
5656
int port_;
5757
std::string address_;

src/web_video_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ WebVideoServer::WebVideoServer(ros::NodeHandle &nh, ros::NodeHandle &private_nh)
4242
nh_(nh), handler_group_(
4343
async_web_server_cpp::HttpReply::stock_reply(async_web_server_cpp::HttpReply::not_found))
4444
{
45-
cleanup_timer_ = nh.createSteadyTimer(ros::WallDuration(0.5), boost::bind(&WebVideoServer::cleanup_inactive_streams, this));
45+
cleanup_timer_ = nh.createTimer(ros::Duration(0.5), boost::bind(&WebVideoServer::cleanup_inactive_streams, this));
4646

4747
private_nh.param("port", port_, 8080);
4848
private_nh.param("verbose", __verbose, true);

0 commit comments

Comments
 (0)