File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -433,13 +433,6 @@ func (c *dbosContext) Shutdown(timeout time.Duration) {
433433 }
434434 }
435435
436- // Close the system database
437- if c .systemDB != nil {
438- c .logger .Info ("Shutting down system database" )
439- c .systemDB .shutdown (c , timeout )
440- c .systemDB = nil
441- }
442-
443436 // Shutdown the admin server
444437 if c .adminServer != nil && c .launched .Load () {
445438 c .logger .Info ("Shutting down admin server" )
@@ -452,6 +445,13 @@ func (c *dbosContext) Shutdown(timeout time.Duration) {
452445 c .adminServer = nil
453446 }
454447
448+ // Close the system database
449+ if c .systemDB != nil {
450+ c .logger .Info ("Shutting down system database" )
451+ c .systemDB .shutdown (c , timeout )
452+ c .systemDB = nil
453+ }
454+
455455 c .launched .Store (false )
456456}
457457
You can’t perform that action at this time.
0 commit comments