refactor: LocalConnection.CheckFatal be gone!

use Shutdown instead, which is in the Connection interface, thus
further reducing dependency on LocalConnection.
This commit is contained in:
Matthias Radestock committed 2015-01-21 21:23:59 +00:00
1 parent 9a27299562
commit 99525ebf85
5 files changed
+16 -23

No files matched your search

+1 -1
View File
@@ -349,7 +349,7 @@ func (fwd *Forwarder) flush() {
} else if PosixError(err) == syscall.ENOBUFS {
// TODO handle this better
} else {
fwd.conn.CheckFatal(err)
fwd.conn.Shutdown(err)
}
}
}