Skip to content

Commit

Permalink
Don't save the state, either, if we were not successful.
Browse files Browse the repository at this point in the history
Another part of the fix for Bug: 13338
  • Loading branch information
mrubinsk committed Jul 12, 2014
1 parent 2fb1a41 commit 3383e67
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -223,8 +223,11 @@ protected function _handle()
}

$this->_encoder->endTag();
$this->_state->setNewSyncKey($newsynckey);
$this->_state->save();

if ($status == self::STATUS_SUCCESS) {
$this->_state->setNewSyncKey($newsynckey);
$this->_state->save();
}

return true;
}
Expand Down

0 comments on commit 3383e67

Please sign in to comment.