A handle of zero is also correct.

This commit is contained in:
Jeroen Leenarts 2018-08-05 22:59:01 +02:00
parent e6d7dfb92c
commit 09b1cd129c
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static void do_log(int level, const char *tag, const char *msg);
self.handle = wgTurnOn((gostring_t){ .p = ifName, .n = interfaceName.length }, (gostring_t){ .p = settings, .n = settingsString.length }, do_read, do_write, (__bridge void *)(self));
return self.handle > 0;
return self.handle >= 0;
}
- (void) turnOff