Changed timeoutMs to 100

This commit is contained in:
PeratX 2018-06-22 01:57:50 +08:00
parent c4d53d6c77
commit 1db66012ea

View File

@ -70,7 +70,7 @@ abstract public class HttpsProvider extends Provider {
StructPollfd[] polls = new StructPollfd[2]; StructPollfd[] polls = new StructPollfd[2];
polls[0] = deviceFd; polls[0] = deviceFd;
polls[1] = blockFd; polls[1] = blockFd;
Os.poll(polls, -1); Os.poll(polls, 100);
if (blockFd.revents != 0) { if (blockFd.revents != 0) {
Log.i(TAG, "Told to stop VPN"); Log.i(TAG, "Told to stop VPN");
running = false; running = false;