Fix BaseHTTPPeer::write strand thread context

This commit is contained in:
Miguel Portilla
2016-06-28 12:56:27 -04:00
committed by seelabs
parent 8c90ef810a
commit 8f5449dafb

View File

@@ -423,7 +423,7 @@ write(
return wq_.size() == 1 && wq2_.size() == 0;
}())
{
if(strand_.running_in_this_thread())
if(! strand_.running_in_this_thread())
return strand_.post(std::bind(
&BaseHTTPPeer::on_write,
impl().shared_from_this(),