1
0

IsRunning() method had no use.

This commit is contained in:
Alexander Andreev 2022-08-29 23:12:47 +04:00
parent f211602a4b
commit 1e6b51a2c0
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -38,7 +38,7 @@ func NewLiquidsoap(liquidsoapPath, scriptPath string) (*Liquidsoap, error) {
} }
func (l *Liquidsoap) Stop() error { func (l *Liquidsoap) Stop() error {
if !l.IsRunning() { if l.command.Process == nil && l.command.ProcessState != nil {
return ErrNotRunning return ErrNotRunning
} }
@ -52,7 +52,3 @@ func (l *Liquidsoap) Stop() error {
return nil return nil
} }
func (l *Liquidsoap) IsRunning() bool {
return l.command.Process != nil && l.command.ProcessState == nil
}