Fix segfault for for session shutdown

This commit is contained in:
Alex Khokhlov 2021-04-03 13:28:19 +03:00
parent 20079b4c2f
commit a2fcb44188
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ const request *session_impl::submit(boost::system::error_code &ec,
}
void session_impl::shutdown() {
if (stopped_) {
if (session_ == nullptr || stopped_) {
return;
}