FIX: ensure we have no dangling db connections on threads

This correct 10 second timeouts in dev mode, when reloader kicks in
This commit is contained in:
Sam
2017-10-30 14:24:15 +11:00
parent da72ecc3fc
commit 7ca08216bd
3 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,7 @@ after_initialize do
].each { |path| load File.expand_path(path, __FILE__) }
# Disable welcome message because that is what the bot is supposed to replace.
SiteSetting.send_welcome_message = false
SiteSetting.send_welcome_message = false if SiteSetting.send_welcome_message
require_dependency 'plugin_store'