If you have an open buy order and then send a sell order, both normally cancel each other and your subsequent cancelation has no effect. But that depends also on the asset and brokerage. There is no loop for orders, only for trades.