mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix typo.
This commit is contained in:
parent
8960fc2371
commit
74dbdea78a
@ -54,10 +54,10 @@ func (peer *PeerStreamTrack) SetStream(stream types.StreamManager) error {
|
||||
if peer.stream != nil {
|
||||
err = peer.stream.MoveListenerTo(&peer.listener, stream)
|
||||
} else {
|
||||
err = peer.stream.AddListener(&peer.listener)
|
||||
err = stream.AddListener(&peer.listener)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
peer.stream = stream
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user