Skip to content

Commit

Permalink
add close printer
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Aug 7, 2024
1 parent 40a6dda commit c108cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mmap_span/mmap_span.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (ms *MMapSpan) Close() (errs []error) {
ms.mu.Lock()
defer ms.mu.Unlock()

fmt.Println("MMS CLS")
if ms.flushTimer != nil {
ms.flushTimer.Stop()
errs = ms.flushMaps(nil, false)
Expand Down
1 change: 1 addition & 0 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ func (t *Torrent) close(wg *sync.WaitGroup) (err error) {
t.storageLock.Lock()
defer t.storageLock.Unlock()
if f := t.storage.Close; f != nil {
fmt.Println("CLS", t.name(true))
err1 := f()
if err1 != nil {
t.logger.WithDefaultLevel(log.Warning).Printf("error closing storage: %v", err1)
Expand Down

0 comments on commit c108cf5

Please sign in to comment.