dont throw away SetDeadline error
This commit is contained in:
parent
70bbce6ad2
commit
09bc4c424a
2
grace.go
2
grace.go
@ -81,7 +81,7 @@ func (l *listener) Close() error {
|
|||||||
// by setting the deadline.
|
// by setting the deadline.
|
||||||
if os.Getppid() == 1 {
|
if os.Getppid() == 1 {
|
||||||
if ld, ok := l.Listener.(deadliner); ok {
|
if ld, ok := l.Listener.(deadliner); ok {
|
||||||
ld.SetDeadline(timeInPast)
|
err = ld.SetDeadline(timeInPast)
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintln(os.Stderr, "init activated server did not have SetDeadline")
|
fmt.Fprintln(os.Stderr, "init activated server did not have SetDeadline")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user