mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 03:26:15 -06:00
[bugfix] Return useful err on server start failure
This commit is contained in:
parent
829143d263
commit
85d4994b96
5 changed files with 73 additions and 50 deletions
|
|
@ -44,6 +44,11 @@ func (sch *Scheduler) Start() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// Started returns true if the scheduler has been started.
|
||||
func (sch *Scheduler) Started() bool {
|
||||
return sch.ts != nil
|
||||
}
|
||||
|
||||
// Stop attempts to stop scheduler, cancelling
|
||||
// all running tasks. Returns false if not running.
|
||||
func (sch *Scheduler) Stop() bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue