Closed Bug 1344902 Opened 7 years ago Closed 6 years ago

Shutdown error: 'Method not implemented' when calling method: [imIAccount::disconnect]

Categories

(Thunderbird :: Instant Messaging, defect)

52 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 60.0

People

(Reporter: aleth, Assigned: freaktechnik)

References

Details

Attachments

(1 file, 2 obsolete files)

On shutdown with a connected IRC account:

JavaScript error: file:Daily.app/Contents/Resources/components/imIncomingServer.js, line 228: uncaught exception: 2147500033
JavaScript error: file:Daily.app/Contents/Resources/components/imIncomingServer.js, line 228: NS_ERROR_NOT_IMPLEMENTED: Method not implemented'Method not implemented' when calling method: [imIAccount::disconnect]
Version: unspecified → 52 Branch
Attached patch bug1344902-v1.patch (obsolete) — Splinter Review
Usually when shutdown is called, the imAccounts have already been disconnected and replaced by UnknownAccounts. In that case, we don't want to try to disconnect them.
Assignee: nobody → martin
Status: NEW → ASSIGNED
Attachment #8957017 - Flags: review?(florian)
Attached patch bug1344902-v1.1.patch (obsolete) — Splinter Review
Oops, that was not the patch it was meant to be.
Attachment #8957017 - Attachment is obsolete: true
Attachment #8957017 - Flags: review?(florian)
Attachment #8957018 - Flags: review?(florian)
Comment on attachment 8957018 [details] [diff] [review]
bug1344902-v1.1.patch

Review of attachment 8957018 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/components/im/imIncomingServer.js
@@ +219,5 @@
>    closeCachedConnections: function() { },
>  
>    // Shutdown the server instance so at least disconnect from the server.
>    shutdown: function() {
> +    // Ensure this is not an UnknownAccount and still connected.

This can't be an UnknownAccount. As discussed on IRC, what you are seeing is https://dxr.mozilla.org/comm-central/source/chat/components/src/imAccounts.js#637

So I think you want if (this.imAccount.prplAccount)
Attachment #8957018 - Flags: review?(florian) → review-
Change to checking if an imAccount has been un-inited, as discussed. Fixes the problem for me and disconnecting seems to still work generally.
Attachment #8957018 - Attachment is obsolete: true
Attachment #8957209 - Flags: review?(florian)
Comment on attachment 8957209 [details] [diff] [review]
bug1344902-v2.patch

Review of attachment 8957209 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8957209 - Flags: review?(florian) → review+
Keywords: checkin-needed
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/1261ad9b3329
Don't try to disconnect dummy accounts. r=florian
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 60.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: