Merge pull request #1229 from yuce/fix-crash

[URGENT] Fixes crash due to server.diagnostics.server not set
This commit is contained in:
Yuce Tekol 2018-04-27 15:20:23 +03:00 • committed by GitHub
commit 64953b4cd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,7 @@ func NewServer(opts ...ServerOption) (*Server, error) {
logger: NopLogger,
}
s.diagnostics.server = s
for _, opt := range opts {
err := opt(s)