IsRunning() method had no use.
This commit is contained in:
parent
f211602a4b
commit
1e6b51a2c0
@ -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
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user