From 3a5ad2e966a4071d74fbf439873bf1f1f7669078 Mon Sep 17 00:00:00 2001 From: Thijs van den Anker Date: Wed, 24 Oct 2018 09:57:40 +0200 Subject: [PATCH] Add method to remove the pending request of the client --- src/Runtime/ClientRuntimeContext.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Runtime/ClientRuntimeContext.php b/src/Runtime/ClientRuntimeContext.php index 79b3470a..2fe3855f 100644 --- a/src/Runtime/ClientRuntimeContext.php +++ b/src/Runtime/ClientRuntimeContext.php @@ -195,6 +195,17 @@ public function getPendingRequest() return $this->pendingRequest; } + /** + * Removes the pending request. + */ + public function removePendingRequest() + { + if (!isset($this->pendingRequest)) { + return; + } + unset($this->pendingRequest); + } + /** * @return Version */