fix: core full stop
This commit is contained in:
+2
-5
@@ -82,11 +82,8 @@ func (c *Core) Start(sbConfig []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Core) Stop() error {
|
func (c *Core) Stop() error {
|
||||||
if c.isRunning {
|
c.isRunning = false
|
||||||
c.isRunning = false
|
return c.instance.Close()
|
||||||
return c.instance.Close()
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Core) IsRunning() bool {
|
func (c *Core) IsRunning() bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user