Fix segfault for for session shutdown
This commit is contained in:
parent
20079b4c2f
commit
a2fcb44188
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue