proper Server attributes initialisation
This commit is contained in:
parent
25216db125
commit
8432c81e07
|
@ -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
|
||||
|
||||
}
|
Loading…
Reference in New Issue