diff --git a/src/common/webrequest.cpp b/src/common/webrequest.cpp index 5baca038be..a604c89eb7 100644 --- a/src/common/webrequest.cpp +++ b/src/common/webrequest.cpp @@ -205,7 +205,7 @@ struct StateEventProcessor void wxWebRequestImpl::SetState(wxWebRequest::State state, const wxString & failMsg) { - wxASSERT_MSG( state != m_state, "shouldn't switch to the same state" ); + wxCHECK_RET( state != m_state, "shouldn't switch to the same state" ); wxLogTrace(wxTRACE_WEBREQUEST, "Request %p: state %d => %d", this, m_state, state);