Changed timeoutMs to 100
This commit is contained in:
parent
c4d53d6c77
commit
1db66012ea
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user