aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.go b/main.go
index 42543f6..96b9b02 100644
--- a/main.go
+++ b/main.go
@@ -42,9 +42,7 @@ func main() {
if err != nil {
slog.Error("cannot make new local client", "error", err)
}
- defer func() {
- client.Teardown()
- }()
+ defer client.Teardown()
client.handleConnection()
}()
}