diff options
| author | EuAndreh <eu@euandre.org> | 2024-08-08 16:56:15 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2024-08-08 16:56:15 -0300 |
| commit | b421c5d74c06b8dc89643fe48e735f07ca2ade11 (patch) | |
| tree | de32ee07be5b0e91a463bbb90cdbfbe7f3ffd411 /src | |
| parent | tests/integration.sh: Use more specific assertion functions (diff) | |
| download | binder-b421c5d74c06b8dc89643fe48e735f07ca2ade11.tar.gz binder-b421c5d74c06b8dc89643fe48e735f07ca2ade11.tar.xz | |
src/lib.go: Do not exit on conn error
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -93,7 +93,7 @@ func Start(toAddr string, listener net.Listener) { if err != nil { g.Warning( "Error accepting connection", - "accept-connection", + "accept-connection-error", "err", err, ) continue @@ -103,12 +103,13 @@ func Start(toAddr string, listener net.Listener) { connTo, err := net.Dial("unix", toAddr) if err != nil { - g.Error( + g.Warning( "Error dialing connection", - "dial-connection", + "dial-connection-error", "err", err, ) - os.Exit(1) + connFrom.Close() + continue } defer connTo.Close() |
