Ticket #3233: filezilla_3.0.3_delay_for_invalid_hostname.patch

File filezilla_3.0.3_delay_for_invalid_hostname.patch, 974 bytes (added by tommywu, 17 years ago)

make delay when got invalid hostname while process queue

  • src/engine/engineprivate.cpp

    diff -Nur Filezilla3/src/engine/engineprivate.cpp Filezilla3.patch/src/engine/engineprivate.cpp
    old new  
    219219
    220220        if (m_pCurrentCommand->GetId() == cmd_connect)
    221221        {
    222             if (!(nErrorCode & ~(FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED | FZ_REPLY_TIMEOUT)) &&
    223                 nErrorCode & (FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED) &&
     222            if (((!m_pEventHandler->IsKindOf(CLASSINFO(wxFrame)) &&
     223                !(nErrorCode & ~(FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED | FZ_REPLY_TIMEOUT | FZ_REPLY_CRITICALERROR)) &&
     224                nErrorCode & (FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED | FZ_REPLY_CRITICALERROR)) ||
     225                (!(nErrorCode & ~(FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED | FZ_REPLY_TIMEOUT)) &&
     226                nErrorCode & (FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED))) &&
    224227                m_retryCount < m_pOptions->GetOptionVal(OPTION_RECONNECTCOUNT))
    225228            {
    226229                m_retryCount++;