]> Sergey Matveev's repositories - btrtrc.git/blobdiff - cmd/torrentfs/main.go
cmd/torrentfs: Add missing envpprof.Stop
[btrtrc.git] / cmd / torrentfs / main.go
index b5e87e83fff8d487dc2774db6766e876117c65e3..84e35bd822b7387705b3f9c44e1d6215173c5af8 100644 (file)
@@ -15,6 +15,7 @@ import (
 
        "bazil.org/fuse"
        fusefs "bazil.org/fuse/fs"
+       "github.com/anacrolix/envpprof"
        _ "github.com/anacrolix/envpprof"
        "github.com/anacrolix/log"
        "github.com/anacrolix/tagflag"
@@ -67,6 +68,7 @@ func addTestPeer(client *torrent.Client) {
 }
 
 func main() {
+       defer envpprof.Stop()
        err := mainErr()
        if err != nil {
                log.Printf("error in main: %v", err)