From 5108d2b3b3075e3860c6eff282c32bec8861aef4 Mon Sep 17 00:00:00 2001 From: Fenny <25108519+Fenny@users.noreply.github.com> Date: Mon, 10 Aug 2020 23:56:47 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=20init=20only=20once?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.go b/app.go index bab995aa..bb1c8669 100644 --- a/app.go +++ b/app.go @@ -508,6 +508,9 @@ func (app *App) Listen(address interface{}, tlsconfig ...*tls.Config) error { // Handler returns the server handler. func (app *App) Handler() fasthttp.RequestHandler { + if !app.initialized { + app.init() + } return app.handler }