Merge pull request #1665 from calmh/wat

Don't initialize subscription in init()
This commit is contained in:
Audrius Butkevicius 2015-04-20 08:12:58 +01:00
commit d530c5eda7
1 changed files with 3 additions and 5 deletions

View File

@ -57,14 +57,12 @@ var (
lastEventRequestMut sync.Mutex
)
func init() {
func startGUI(cfg config.GUIConfiguration, assetDir string, m *model.Model) error {
var err error
l.AddHandler(logger.LevelWarn, showGuiError)
sub := events.Default.Subscribe(events.AllEvents)
eventSub = events.NewBufferedSubscription(sub, 1000)
}
func startGUI(cfg config.GUIConfiguration, assetDir string, m *model.Model) error {
var err error
cert, err := tls.LoadX509KeyPair(locations[locHTTPSCertFile], locations[locHTTPSKeyFile])
if err != nil {