We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7d27f commit ea839c0Copy full SHA for ea839c0
1 file changed
src/Engine.cpp
@@ -83,7 +83,8 @@ void Engine::add_subscriber(sg4::ActorPtr actor)
83
84
void Engine::close_stream() const
85
{
86
- stream_.lock()->close();
+ if (auto s = stream_.lock())
87
+ s->close();
88
}
89
/// \endcond
90
0 commit comments