From: Fredrik Tolf Date: Sun, 27 Jan 2008 21:38:12 +0000 (+0100) Subject: Java: Fix ecmd and Writer bugs. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=59b214d63f3e51473177f573bdc4c8edaa08f9ea;p=doldaconnect.git Java: Fix ecmd and Writer bugs. --- diff --git a/lib/java/dolda/dolcon/protocol/Connection.java b/lib/java/dolda/dolcon/protocol/Connection.java index 03152bc..43cf5a3 100644 --- a/lib/java/dolda/dolcon/protocol/Connection.java +++ b/lib/java/dolda/dolcon/protocol/Connection.java @@ -212,6 +212,7 @@ public class Connection { notifyAll(); } }; + qcmd(cmd); synchronized(l) { while(!donep[0]) { l.wait(); @@ -284,7 +285,9 @@ public class Connection { out.append(' '); out.append(quote(s)); } + out.append("\r\n"); w.write(out.toString()); + w.flush(); } } catch(IOException e) { throw(new StopCondition(e, false));