mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
HTTP/2 Push https://github.com/kataras/iris/issues/565
Former-commit-id: 32af4dd8ef18a5fb2fa88aa8b87e71a594faa6f2
This commit is contained in:
3
iris.go
3
iris.go
@@ -443,8 +443,9 @@ func (s *Framework) Serve(ln net.Listener) error {
|
||||
if s.ln != nil {
|
||||
return errors.New("server is already started and listening")
|
||||
}
|
||||
// maybe a 'race' here but user should not call .Serve more than one time especially in more than one go routines...
|
||||
|
||||
s.ln = ln
|
||||
s.closedManually = false
|
||||
s.Boot()
|
||||
|
||||
// post any panics to the user defined logger.
|
||||
|
||||
Reference in New Issue
Block a user