Can't believe this bug is still around
This commit is contained in:
parent
03b197e9fd
commit
0e441c8048
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func removeCon(c net.Conn) {
|
|||
|
||||
func broadcast(message string) {
|
||||
for _, c := range clients {
|
||||
_, err := fmt.Fprintf(c, message+"\r\n")
|
||||
_, err := fmt.Fprintln(c, message)
|
||||
if err != nil {
|
||||
removeCon(c)
|
||||
}
|
||||
|
|
Reference in a new issue