A handle of zero is also correct.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts 2018-08-05 22:59:01 +02:00
parent ed18f66a6f
commit 17d4460df0
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