Skip to content

Commit 471b977

Browse files
authored
Merge pull request #131 from thijsvdanker/add-removePendingRequest
Add method to remove the pending request of the client
2 parents 87169b8 + 3a5ad2e commit 471b977

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Runtime/ClientRuntimeContext.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,17 @@ public function getPendingRequest()
195195
return $this->pendingRequest;
196196
}
197197

198+
/**
199+
* Removes the pending request.
200+
*/
201+
public function removePendingRequest()
202+
{
203+
if (!isset($this->pendingRequest)) {
204+
return;
205+
}
206+
unset($this->pendingRequest);
207+
}
208+
198209
/**
199210
* @return Version
200211
*/

0 commit comments

Comments
 (0)