mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-22 21:47:08 +02:00
should omit comparison to bool constant.
This commit is contained in:
parent
4093bc5311
commit
f521373f9b
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ func (manager *SessionManager) New(id string, admin bool, socket types.WebSocket
|
|||
manager.members[id] = session
|
||||
manager.emmiter.Emit("created", id, session)
|
||||
|
||||
if manager.remote.Streaming() != true && len(manager.members) > 0 {
|
||||
if !manager.remote.Streaming() && len(manager.members) > 0 {
|
||||
manager.remote.StartStream()
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ func (manager *SessionManager) Destroy(id string) error {
|
|||
err := session.destroy()
|
||||
delete(manager.members, id)
|
||||
|
||||
if manager.remote.Streaming() != false && len(manager.members) <= 0 {
|
||||
if !manager.remote.Streaming() && len(manager.members) <= 0 {
|
||||
manager.remote.StopStream()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue