зеркало из https://github.com/mozilla/gecko-dev.git
fix assertion / problem with subscribe. duh.
This commit is contained in:
Родитель
c29b76868f
Коммит
bbab58c258
|
@ -1955,9 +1955,9 @@ NS_IMETHODIMP
|
|||
nsImapIncomingServer::StartPopulatingSubscribeDS()
|
||||
{
|
||||
nsresult rv;
|
||||
mInner = do_CreateInstance(kSubscribableServerCID,&rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
|
||||
NS_ASSERTION(mInner,"not initialized");
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
|
||||
rv = SetIncomingServer(this);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
@ -1971,8 +1971,10 @@ nsImapIncomingServer::StartPopulatingSubscribeDS()
|
|||
NS_IMETHODIMP
|
||||
nsImapIncomingServer::SetSubscribeListener(nsISubscribeListener *aListener)
|
||||
{
|
||||
NS_ASSERTION(mInner,"not initialized");
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
nsresult rv;
|
||||
mInner = do_CreateInstance(kSubscribableServerCID,&rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
return mInner->SetSubscribeListener(aListener);
|
||||
}
|
||||
|
||||
|
|
|
@ -762,9 +762,9 @@ NS_IMETHODIMP
|
|||
nsNntpIncomingServer::StartPopulatingSubscribeDS()
|
||||
{
|
||||
nsresult rv;
|
||||
mInner = do_CreateInstance(kSubscribableServerCID,&rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
|
||||
NS_ASSERTION(mInner,"not initialized");
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
|
||||
rv = SetIncomingServer(this);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
@ -777,9 +777,12 @@ nsNntpIncomingServer::StartPopulatingSubscribeDS()
|
|||
|
||||
NS_IMETHODIMP
|
||||
nsNntpIncomingServer::SetSubscribeListener(nsISubscribeListener *aListener)
|
||||
{
|
||||
NS_ASSERTION(mInner,"not initialized");
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
{
|
||||
nsresult rv;
|
||||
mInner = do_CreateInstance(kSubscribableServerCID,&rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!mInner) return NS_ERROR_FAILURE;
|
||||
|
||||
return mInner->SetSubscribeListener(aListener);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче