History

Delete reply after the callback is executed

Clement committed 7 years ago

Commit 90aeb631 parent 6f760981 file · +3 −3Browse files

Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/XMLHttpRequestClass.cpp+3−3
@@ -218,12 +218,12 @@ void XMLHttpRequestClass::requestFinished() { · 217 unmodified lines
218218 }
219219 }
220220
221+ setReadyState(DONE);
222+ emit requestComplete();
223+
221224 disconnectFromReply(_reply);
222225 _reply->deleteLater();
223226 _reply = nullptr;
224−
225− setReadyState(DONE);
226− emit requestComplete();
227227 }
228228
229229 void XMLHttpRequestClass::abortRequest() {