when I have a sip account that was not able to register because of a
connection fail it's state is
When I want to delete this account, the
And in that method if the account is unregistering or unregistred it will do
nothing otherwise it will try to unregister.
But if the connection state is CONNECTION_FAILED, the problem is that it
will try to unregister then fail again and show an error dialog.
I think that when the state is CONNECTION_FAILED, the account is not
registered so it is not necessary to try to unregister and fail again
My patch fixes that problem