fixed /admin/api/update hang bug

Tested and should work this time, still need to add error handling