Skip to content

Commit

Permalink
Fix session locking on async requests
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Sep 13, 2016
1 parent ef78a1b commit fbbc56f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/wp-async-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ protected function get_post_args() {
* Check for correct nonce and pass to handler.
*/
public function maybe_handle() {
// Don't lock up other requests while processing
session_write_close();

check_ajax_referer( $this->identifier, 'nonce' );

$this->handle();
Expand Down

0 comments on commit fbbc56f

Please sign in to comment.