Fix typo newCLient to newClient
This commit is contained in:
parent
ad9863d2c8
commit
028dc99fc2
|
@ -176,15 +176,15 @@ loop:
|
||||||
case <-s.Exit:
|
case <-s.Exit:
|
||||||
break loop
|
break loop
|
||||||
default:
|
default:
|
||||||
newCLient, err := listener.Accept()
|
newClient, err := listener.Accept()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.ErrorsChannel <- fmt.Errorf("listener.Accept: %w", err)
|
s.ErrorsChannel <- fmt.Errorf("listener.Accept: %w", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if s.LogLevel&LogLevel_Connection > 0 {
|
if s.LogLevel&LogLevel_Connection > 0 {
|
||||||
fmt.Printf("New Connection from %s is accepted\n", newCLient.RemoteAddr())
|
fmt.Printf("New Connection from %s is accepted\n", newClient.RemoteAddr())
|
||||||
}
|
}
|
||||||
go s.HandleClientFunc(newCLient)
|
go s.HandleClientFunc(newClient)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user