dont throw away SetDeadline error

This commit is contained in:
Naitik Shah 2013-10-06 11:07:31 -07:00
parent 70bbce6ad2
commit 09bc4c424a

View File

@ -81,7 +81,7 @@ func (l *listener) Close() error {
// by setting the deadline.
if os.Getppid() == 1 {
if ld, ok := l.Listener.(deadliner); ok {
ld.SetDeadline(timeInPast)
err = ld.SetDeadline(timeInPast)
} else {
fmt.Fprintln(os.Stderr, "init activated server did not have SetDeadline")
}