X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=library%2FRemoteLibrary.java;h=65be7b1759e4893b2412f2c74cc00c0b3a95a2a7;hp=ce4305aadad96bfe9446817d467234545ccfce7a;hb=2e1300b9580ae1b6dded5a734c617a66a116c16d;hpb=669a62833b4458bad0772debdd06921080500221 diff --git a/library/RemoteLibrary.java b/library/RemoteLibrary.java index ce4305a..65be7b1 100644 --- a/library/RemoteLibrary.java +++ b/library/RemoteLibrary.java @@ -124,9 +124,9 @@ public class RemoteLibrary extends BasicLibrary { @Override public Status getStatus() { - Instance.getTraceHandler().trace("Getting remote lib status..."); + Instance.getInstance().getTraceHandler().trace("Getting remote lib status..."); Status status = getStatusDo(); - Instance.getTraceHandler().trace("Remote lib status: " + status); + Instance.getInstance().getTraceHandler().trace("Remote lib status: " + status); return status; } @@ -443,6 +443,7 @@ public class RemoteLibrary extends BasicLibrary { public void action(ConnectActionClientObject action) throws Exception { action.send(new Object[] { subkey, "EXIT" }); + Thread.sleep(100); } }); } @@ -458,7 +459,7 @@ public class RemoteLibrary extends BasicLibrary { } @Override - protected List getMetas(Progress pg) throws IOException { + protected synchronized List getMetas(Progress pg) throws IOException { return getMetasList("*", pg); } @@ -559,7 +560,7 @@ public class RemoteLibrary extends BasicLibrary { @Override protected void onError(Exception e) { if (!(e instanceof IOException)) { - Instance.getTraceHandler().error(e); + Instance.getInstance().getTraceHandler().error(e); return; }