Do not stop LongPollRunnable on SSLException
[fonbot.git] / 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.009716 seconds and 4 git commands to generate.