void CControlSocket::OnObtainLock() { if (ObtainLockFromEvent() == lock_unknown) return; SendNextCommand(); UnlockCache(); }
void CControlSocket::OnObtainLock(wxCommandEvent& event) { if (!ObtainLockFromEvent()) return; SendNextCommand(); UnlockCache(); }