am 15b085f8: Merge "Fix issue that VPN connection fail when L2TP secret enable"

* commit '15b085f8d06b2b579e0cf30f8a57f9d15d50f2b9':
  Fix issue that VPN connection fail when L2TP secret enable
diff --git a/mtpd.c b/mtpd.c
index cff5712..c005567 100644
--- a/mtpd.c
+++ b/mtpd.c
@@ -199,13 +199,16 @@
         if (pollfds[2].revents) {
             interrupt(SIGTERM);
         }
+        timeout = pollfds[0].revents ?
+                the_protocol->process() : the_protocol->timeout();
 #ifdef ANDROID_CHANGES
         if (!access("/data/misc/vpn/abort", F_OK)) {
             interrupt(SIGTERM);
         }
+        if (!timeout) {
+            timeout = 5000;
+        }
 #endif
-        timeout = pollfds[0].revents ?
-                the_protocol->process() : the_protocol->timeout();
     }
 
     if (timeout < 0) {