mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-14 20:59:56 +01:00
Fix hang when pulseaudio goes offline
This commit is contained in:
parent
774b76c9cd
commit
b4836751f2
|
|
@ -5,6 +5,7 @@ package main
|
|||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
|
@ -285,6 +286,10 @@ func (a *audioStruct) recLoopFromVirtualSoundcard(deinitNeededChan, deinitFinish
|
|||
if err != nil {
|
||||
if _, ok := err.(*os.PathError); !ok {
|
||||
reportError(err)
|
||||
if err == io.EOF {
|
||||
<-deinitNeededChan
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue