Commit c4f33845 authored by Hugo DACLON's avatar Hugo DACLON
Browse files

aller cette fois c'est la bonne

parent 5f55c96a
......@@ -91,7 +91,7 @@ public class HostControleur implements ActionListener {
try {
while(Network.getInfo(appli.getServerUrl(),appli.getGame(), appli.getPlayer())!=10){
try { attente.wait(); } catch (InterruptedException e1) {System.out.println("haha");}
try { attente.wait(1); } catch (InterruptedException e1) {System.out.println("haha");}
}
} catch(IllegalMonitorStateException e2){
JOptionPane.showMessageDialog(appli.getFenetre(), "La partie à été annulée");
......
......@@ -67,7 +67,7 @@ public class Shoot implements ActionListener {
int response = -10;
int info = 0;
while (response == -10 && info != 100) {
attente.wait();
attente.wait(1);
response = Network.playOneTurn(appli.getServerUrl(), appli.getGame(), appli.getPlayer(), cell);
info = Network.getInfo(appli.getServerUrl(), appli.getGame(), appli.getPlayer());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment