From 01ba55459e3ec9e9c21a35a6a50f37908ce4d42b Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Wed, 2 Feb 2011 15:05:01 +0000 Subject: Fix for bug 3413829, crash when loading page When a read failed we deleted it and scheduled a new read. The new read would also fail (since the request was deleted), and crash. Change-Id: Idcb3265e705d616657c2679389951d632c54cca5 --- WebKit/android/WebCoreSupport/WebRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WebKit') diff --git a/WebKit/android/WebCoreSupport/WebRequest.cpp b/WebKit/android/WebCoreSupport/WebRequest.cpp index 9d7a88e..fd6bbe2 100644 --- a/WebKit/android/WebCoreSupport/WebRequest.cpp +++ b/WebKit/android/WebCoreSupport/WebRequest.cpp @@ -451,7 +451,7 @@ void WebRequest::startReading() if (!read(&bytesRead)) { if (m_request && m_request->status().is_io_pending()) return; // Wait for OnReadCompleted() - finish(false); + return finish(false); } // bytesRead == 0 indicates finished -- cgit v1.1