wrap TLS async_shutdown in a strand references #459 #466

This commit is contained in:
Peter Thorson
2016-02-07 11:26:00 -05:00
parent b6014cc79b
commit 563fcc6b45
+5 -1
View File
@@ -326,7 +326,11 @@ protected:
}
void async_shutdown(socket::shutdown_handler callback) {
m_socket->async_shutdown(callback);
if (m_strand) {
m_socket->async_shutdown(m_strand->wrap(callback));
} else {
m_socket->async_shutdown(callback);
}
}
/// Translate any security policy specific information about an error code