protect: set oldProtection after getting API result
Merge pull request #149 from jimmyxu/for-azatoth

protect: et oldProtection after getting API result