Skip to content

Commit

Permalink
Merge pull request #339 from joestarzxh/master
Browse files Browse the repository at this point in the history
[fix] 修复http sub没有正确释放的问题
  • Loading branch information
q191201771 authored Jan 19, 2024
2 parents 92252c8 + 3cba14f commit 8fa60e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/logic/http_server_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (h *HttpServerHandler) ServeSubSession(writer http.ResponseWriter, req *htt
err = session.RunLoop()
Log.Debugf("[%s] httpflv sub session loop done. err=%v", session.UniqueKey(), err)
h.observer.OnDelHttpflvSubSession(session)
_ = session.Dispose()
return
}

Expand All @@ -92,6 +93,7 @@ func (h *HttpServerHandler) ServeSubSession(writer http.ResponseWriter, req *htt
err = session.RunLoop()
Log.Debugf("[%s] httpts sub session loop done. err=%v", session.UniqueKey(), err)
h.observer.OnDelHttptsSubSession(session)
_ = session.Dispose()
return
}
}

0 comments on commit 8fa60e4

Please sign in to comment.