X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=library%2FRemoteLibrary.java;h=bbe772a8c90168c658fa985461e92c58f13bb8d0;hb=598196006967b6ea4da21e7236fa21f51a9af12b;hp=ce4305aadad96bfe9446817d467234545ccfce7a;hpb=669a62833b4458bad0772debdd06921080500221;p=nikiroo-utils.git diff --git a/library/RemoteLibrary.java b/library/RemoteLibrary.java index ce4305a..bbe772a 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; } @@ -426,7 +426,7 @@ public class RemoteLibrary extends BasicLibrary { } @Override - public synchronized File getFile(final String luid, Progress pg) { + public File getFile(final String luid, Progress pg) { throw new java.lang.InternalError( "Operation not supportorted on remote Libraries"); } @@ -443,12 +443,13 @@ public class RemoteLibrary extends BasicLibrary { public void action(ConnectActionClientObject action) throws Exception { action.send(new Object[] { subkey, "EXIT" }); + Thread.sleep(100); } }); } @Override - public synchronized MetaData getInfo(String luid) throws IOException { + public MetaData getInfo(String luid) throws IOException { List metas = getMetasList(luid, null); if (!metas.isEmpty()) { return metas.get(0); @@ -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; }