Load plugins on start
This commit is contained in:
parent
54a601a149
commit
a5ba4cd855
2
tomo.go
2
tomo.go
|
@ -9,6 +9,8 @@ var backend Backend
|
||||||
// event loop in that order. This function blocks until Stop is called, or the
|
// event loop in that order. This function blocks until Stop is called, or the
|
||||||
// backend experiences a fatal error.
|
// backend experiences a fatal error.
|
||||||
func Run (callback func ()) error {
|
func Run (callback func ()) error {
|
||||||
|
loadPlugins()
|
||||||
|
|
||||||
if backend != nil {
|
if backend != nil {
|
||||||
return errors.New("there is already a backend running")
|
return errors.New("there is already a backend running")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue