From 616c33f0069012bf90bec872fcc4e5b3c3caf0e1 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 6 Apr 2023 23:25:29 +0800 Subject: [PATCH] don't delete jobs map --- statediff/service.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/statediff/service.go b/statediff/service.go index 5a171ef74..738723391 100644 --- a/statediff/service.go +++ b/statediff/service.go @@ -890,9 +890,6 @@ func (sds *Service) UnsubscribeWriteStatus(id rpc.ID) error { sds.Lock() close(sds.jobStatusSubs[id].quitChan) delete(sds.jobStatusSubs, id) - if len(sds.jobStatusSubs) == 0 { - sds.jobStatusSubs = nil - } sds.Unlock() return nil }