Advertisement
0xroot

handleServerConnectionError Java

Jul 19th, 2011
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. /**
  2.      * Generates policy response for service connection errors, as a result of
  3.      * disconnections or timeouts.
  4.      */
  5.     private synchronized void handleServiceConnectionError(LicenseValidator validator) {
  6.         mPolicy.processServerResponse(LicenseResponse.RETRY, null);
  7.  
  8.         if (mPolicy.allowAccess()) {
  9.             validator.getCallback().allow();
  10.         } else {
  11.             validator.getCallback().dontAllow();
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement