fix lib
[fanfix.git] / src / be / nikiroo / fanfix / library / RemoteLibrary.java
index 6e3380b4a2239a074c26750436f8abc0df368e12..f1ff214d5671f3cf52bc4a82e1472a2d9b9e414f 100644 (file)
@@ -143,11 +143,11 @@ public class RemoteLibrary extends BasicLibrary {
 
                                @Override
                                protected void onError(Exception e) {
-                                       // if (e instanceof SSLException) {
-                                       result[0] = Status.UNAUTHORIZED;
-                                       // } else {
-                                       // result[0] = Status.UNAVAILABLE;
-                                       // }
+                                       if (e instanceof SSLException) {
+                                               result[0] = Status.UNAUTHORIZED;
+                                       } else {
+                                               result[0] = Status.UNAVAILABLE;
+                                       }
                                }
                        }.connect();
                } catch (UnknownHostException e) {