spelling nit
This commit is contained in:
parent
57754541e7
commit
ebaf0674d2
2
grace.go
2
grace.go
@ -107,7 +107,7 @@ func (l *listener) Accept() (net.Conn, error) {
|
|||||||
|
|
||||||
// We use SetDeadline above to trigger Accept to return when we're trying
|
// We use SetDeadline above to trigger Accept to return when we're trying
|
||||||
// to handoff to a child as part of our restart process. In this scenario
|
// to handoff to a child as part of our restart process. In this scenario
|
||||||
// we want to tread the timeout the same as a Close.
|
// we want to treat the timeout the same as a Close.
|
||||||
if nerr, ok := err.(net.Error); ok && nerr.Timeout() {
|
if nerr, ok := err.(net.Error); ok && nerr.Timeout() {
|
||||||
l.closedMutex.RLock()
|
l.closedMutex.RLock()
|
||||||
if l.closed {
|
if l.closed {
|
||||||
|
Loading…
Reference in New Issue
Block a user