aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.go b/main.go
index 15a885c..42543f6 100644
--- a/main.go
+++ b/main.go
@@ -37,9 +37,7 @@ func main() {
slog.Error("connection routine panicked", "raised", raised)
}
}()
- defer func() {
- conn.Close()
- }()
+ defer conn.Close()
client, err := NewLocalClient(&conn)
if err != nil {
slog.Error("cannot make new local client", "error", err)