router/static: implement noop watcher (#2031)
* router/static: implement noop watcher * proxy/mucp: handle nil watcher
This commit is contained in:
		| @@ -297,6 +297,9 @@ func (p *Proxy) watchRoutes() { | ||||
| 	if err != nil { | ||||
| 		logger.Debugf("Error watching router: %v", err) | ||||
| 		return | ||||
| 	} else if w == nil { | ||||
| 		logger.Debugf("Error watching routes, no watcher returned") | ||||
| 		return | ||||
| 	} | ||||
| 	defer w.Stop() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user