Skip to content
Permalink
Browse files

fixed: do not close non-existent session

  • Loading branch information...
akva2 committed Nov 17, 2016
1 parent 4d4be7f commit 9a57ec144b2303031d32ad98d8ab18b22ecb1077
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/RTMPStream.cpp
@@ -150,7 +150,8 @@ std::map<std::string, AVal> options =

void Close(void)
{
RTMP_Close(session);
if (session)
RTMP_Close(session);
session = nullptr;
paused = false;
}

0 comments on commit 9a57ec1

Please sign in to comment.
You can’t perform that action at this time.