mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-21 06:13:43 +00:00
Remove duplicate checks
This commit is contained in:
parent
1224210495
commit
725aba9e02
1 changed files with 2 additions and 7 deletions
9
main.go
9
main.go
|
|
@ -24,13 +24,8 @@ func exit(err error) {
|
|||
log.Error(err.Error())
|
||||
}
|
||||
|
||||
if streams.audio.common.conn != nil {
|
||||
streams.audio.sendDisconnect()
|
||||
}
|
||||
|
||||
if streams.control.common.conn != nil {
|
||||
streams.control.sendDisconnect()
|
||||
}
|
||||
streams.audio.sendDisconnect()
|
||||
streams.control.sendDisconnect()
|
||||
|
||||
if audioPipes.source.IsOpen() {
|
||||
if err := audioPipes.source.Close(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue