Playing around with designer
This commit is contained in:
parent
0128940b54
commit
354f739f83
@ -110,8 +110,8 @@ public class Exchange extends Thread {
|
|||||||
public void CancelOrder(Order o) {
|
public void CancelOrder(Order o) {
|
||||||
Lock();
|
Lock();
|
||||||
// System.out.println("Cancel BuyOrder");
|
// System.out.println("Cancel BuyOrder");
|
||||||
bid.remove(o);
|
bid.remove((BuyOrder)o);
|
||||||
ask.remove(o);
|
ask.remove((SellOrder)o);
|
||||||
o.status = OrderStatus.canceled;
|
o.status = OrderStatus.canceled;
|
||||||
Unlock();
|
Unlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user