aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-04 22:04:06 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-04 22:04:06 +0800
commitca92770b428709f3c8f577ea81b8944802394b85 (patch)
treeac497a4e2d820d3b5d5f3b23a2f9d42dce2e09a4 /main.go
parentUse Open_file_at instead of Open (diff)
downloadmaild-ca92770b428709f3c8f577ea81b8944802394b85.tar.gz
maild-ca92770b428709f3c8f577ea81b8944802394b85.tar.zst
maild-ca92770b428709f3c8f577ea81b8944802394b85.zip
Clean up directory file descriptors
Diffstat (limited to '')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2d6b706..f71391d 100644
--- a/main.go
+++ b/main.go
@@ -23,6 +23,7 @@ func main() {
if err != nil {
panic(err)
}
+ defer clean_up_dirs()
listener, err := net.Listen("tcp", ":25")
if err != nil {