From 8432c81e0704e08df4d63543aca6ec694c550c5b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 26 Apr 2018 23:27:12 +0200 Subject: [PATCH] proper Server attributes initialisation --- ws/public.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ws/public.go b/ws/public.go index ad39882..ec897fa 100644 --- a/ws/public.go +++ b/ws/public.go @@ -14,6 +14,12 @@ func CreateServer(host string, port uint16) *Server{ inst.prt = port + inst.cli = make([]*Client, 0) + + inst.def = nil + + inst.ctl = make([]*Controller, 0) + return inst } \ No newline at end of file