Closed Bug 1877886 Opened 4 months ago Closed 4 months ago

NntpIncomingServer._newsrcTimer not cleaned up if the server is removed

Categories

(MailNews Core :: Networking: NNTP, defect)

defect

Tracking

(thunderbird_esr115 affected)

RESOLVED FIXED
124 Branch
Tracking Status
thunderbird_esr115 --- affected

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The constructor of NntpIncomingServer starts a repeating timer to update the newsrc file, but if the server is removed this timer isn't cleaned up. This leaks the object and leads to error messages:

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIMsgFolder.subFolders]
writeNewsrcFile@resource:///modules/NntpIncomingServer.jsm:450:24
NntpIncomingServer/this._newsrcTimer<@resource:///modules/NntpIncomingServer.jsm:67:53
notify@resource://gre/modules/Timer.sys.mjs:49:17
Assignee: nobody → geoff
Status: NEW → ASSIGNED

Hmm, I wonder if bug 1870821 could be something similar...

Maybe, although timers this long are explicitly ignored for that check, so it's not this particular timer.

Target Milestone: --- → 124 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/0e2b3b2240d3
Stop timer in NntpIncomingServer when it gets shut down. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Blocks: 1878172
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: