Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZSC714725 committed Mar 20, 2024
1 parent 930e513 commit 8aa5d17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.9
FROM golang:1.21.1
ENV GOPROXY=https://goproxy.cn,https://goproxy.io,direct
LABEL maintainer="Kevin Zang"

Expand Down
10 changes: 6 additions & 4 deletions gb28181/mediaserver/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ func (c *Conn) Serve() (err error) {
nazalog.Info("conn close, err:", err)
c.conn.Close()

if c.NotifyClose != nil {
c.NotifyClose(c.streamName)
}
if c.check {
if c.NotifyClose != nil {
c.NotifyClose(c.streamName)
}

c.lalServer.DelCustomizePubSession(c.lalSession)
c.lalServer.DelCustomizePubSession(c.lalSession)
}
}()

nazalog.Info("gb28181 conn, remoteaddr:", c.conn.RemoteAddr().String(), " localaddr:", c.conn.LocalAddr().String())
Expand Down

0 comments on commit 8aa5d17

Please sign in to comment.