]> iEval git - fonbot.git/commitdiff
Do not stop LongPollRunnable on SSLException
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 7 Oct 2014 11:15:32 +0000 (14:15 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 7 Oct 2014 11:15:43 +0000 (14:15 +0300)
This should fix bug 20

src/ro/ieval/fonbot/FonBotMainService.java

index 8bc69ae7541ad8c2bea7857f1af8c43d8037246f..9fb714533ea02b47b126e3b93a64e3aac2ce498d 100644 (file)
@@ -8,6 +8,8 @@ import java.util.Collections;
 import java.util.EnumSet;
 import java.util.Set;
 
+import javax.net.ssl.SSLException;
+
 import org.eclipse.jdt.annotation.Nullable;
 
 import ro.ieval.fonbot.Address.Protocol;
@@ -82,6 +84,8 @@ public final class FonBotMainService extends Service {
                                        runnable.doRun();
                                } catch (final SocketTimeoutException e){
                                        Log.d("LongPollRunnable", "Socket timeout, refreshing connection");
+                               } catch (final SSLException e){
+                                       Log.d("LongPollRunnable", "Got SSLException, refreshing connection");
                                } catch (final Exception ex){
                                        ex.printStackTrace();
                                        break;
This page took 0.028448 seconds and 4 git commands to generate.