Load plugins on start

This commit is contained in:
Sasha Koshka 2023-06-30 19:30:17 -04:00
parent 54a601a149
commit a5ba4cd855
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ var backend Backend
// event loop in that order. This function blocks until Stop is called, or the
// backend experiences a fatal error.
func Run (callback func ()) error {
loadPlugins()
if backend != nil {
return errors.New("there is already a backend running")
}