proper Server attributes initialisation

This commit is contained in:
xdrm-brackets 2018-04-26 23:27:12 +02:00
parent 25216db125
commit 8432c81e07
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@ func CreateServer(host string, port uint16) *Server{
inst.prt = port inst.prt = port
inst.cli = make([]*Client, 0)
inst.def = nil
inst.ctl = make([]*Controller, 0)
return inst return inst
} }