We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89f9f4 commit 76facbbCopy full SHA for 76facbb
src/web_video_server.cpp
@@ -97,8 +97,8 @@ void WebVideoServer::cleanup_inactive_streams()
97
if (lock)
98
{
99
typedef std::vector<boost::shared_ptr<ImageStreamer> >::iterator itr_type;
100
- itr_type new_end = std::remove_if(image_subscribers_.begin(), image_subscribers_.end(),
101
- boost::bind(&ImageStreamer::isInactive, _1));
+ itr_type new_end = std::partition(image_subscribers_.begin(), image_subscribers_.end(),
+ !boost::bind(&ImageStreamer::isInactive, _1));
102
if (__verbose)
103
104
for (itr_type itr = new_end; itr < image_subscribers_.end(); ++itr)
0 commit comments