diff --git a/src/main/java/BattleShip/BShip.java b/src/main/java/BattleShip/BShip.java index 91cf154..b7fe9dd 100644 --- a/src/main/java/BattleShip/BShip.java +++ b/src/main/java/BattleShip/BShip.java @@ -169,7 +169,7 @@ public class BShip { public class ShipsPlacedReader implements Runnable { public void run() { - while (grid1 == null && grid2 == null) { + while (grid1 != null && grid2 != null) { while (!shipsPlaced) { synchronized (lock) { try {