Skip to content

Commit

Permalink
[fix] merge pull request #73 from HeyJupiter/master.
Browse files Browse the repository at this point in the history
[fix] fix a very occasional crash bug.
  • Loading branch information
winshining authored Sep 29, 2018
2 parents 375b235 + 4a931c0 commit 9f2d5af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngx_rtmp_gop_cache_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,8 @@ ngx_rtmp_gop_cache_close_stream(ngx_rtmp_session_t *s,
goto next;
}

ngx_rtmp_gop_cache_cleanup(s);

gctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_gop_cache_module);
if (gctx == NULL) {
goto next;
Expand All @@ -877,8 +879,6 @@ ngx_rtmp_gop_cache_close_stream(ngx_rtmp_session_t *s,
gctx->pool = NULL;
}

ngx_rtmp_gop_cache_cleanup(s);

next:
return next_close_stream(s, v);
}
Expand Down

0 comments on commit 9f2d5af

Please sign in to comment.