mirror of https://bitbucket.org/ausocean/av.git
Reinitialize *s in close().
This commit is contained in:
parent
04679e4757
commit
1fe011b5fb
|
@ -145,11 +145,11 @@ func (s *Session) close() {
|
|||
}
|
||||
s.link.conn.Close()
|
||||
}
|
||||
s = &Session{}
|
||||
*s = Session{}
|
||||
}
|
||||
|
||||
// Write writes a frame (flv tag) to the rtmp connection.
|
||||
func (s *Session) Write(data []byte) (int, error) {
|
||||
//func (s *Session) Write(data []byte) (int, error) {
|
||||
if !s.isConnected() {
|
||||
return 0, errNotConnected
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue