private async Task <bool> ImproveTech(int techId) { if (asyncLock) { return(false); } try { asyncLock = true; var p = await packetWriter.ImproveInstituteTechAsync(techId, InstituteImproveType.PhoThong); if (p == null || p.HasError) { return(false); } return(true); } finally { asyncLock = false; } }