diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-08-21 16:32:20 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-08-21 16:32:20 +0200 |
commit | ffa2fe61172aa0d892234b23d1497c77a6a7f5c4 (patch) | |
tree | c4e3463deed17bbebcdcfe86b51b5774bcd8e25d | |
parent | d966f5d08d7f75f1ae9acd94e292bf61de2adf0d (diff) | |
download | hugo-ffa2fe61172aa0d892234b23d1497c77a6a7f5c4.tar.gz hugo-ffa2fe61172aa0d892234b23d1497c77a6a7f5c4.zip |
Revert "commands: Avoid too many watch file handles causing the server to fail to start"
This reverts commit 3f38c785b7208440e2a9dd9a80cb39d4ae23e676.
-rw-r--r-- | commands/server.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/commands/server.go b/commands/server.go index 48e76da6b..09cf43b24 100644 --- a/commands/server.go +++ b/commands/server.go @@ -261,11 +261,6 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error { s.RegisterMediaTypes() } - err = c.serve(sc) - if err != nil { - return err - } - // Watch runs its own server as part of the routine if sc.serverWatch { @@ -288,7 +283,7 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error { } - return nil + return c.serve(sc) } func getRootWatchDirsStr(baseDir string, watchDirs []string) string { |