mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
A couple more places we should check HTTP status
This commit is contained in:
parent
d72eee6cf7
commit
aa71292265
1 changed files with 9 additions and 0 deletions
|
@ -365,6 +365,9 @@
|
|||
|
||||
completionHandler(status);
|
||||
}
|
||||
else if (status == 401) {
|
||||
self->_resetKey = YES;
|
||||
}
|
||||
}];
|
||||
[task resume];
|
||||
}
|
||||
|
@ -436,6 +439,9 @@
|
|||
if(status == 200) {
|
||||
NSLog(@"join ok");
|
||||
}
|
||||
else if (status == 401) {
|
||||
self->_resetKey = YES;
|
||||
}
|
||||
else {
|
||||
NSLog(@"join error: %ld", (long)status);
|
||||
}
|
||||
|
@ -492,6 +498,9 @@
|
|||
if(status == 200) {
|
||||
NSLog(@"leave ok");
|
||||
}
|
||||
else if (status == 401) {
|
||||
self->_resetKey = YES;
|
||||
}
|
||||
else {
|
||||
NSLog(@"leave error: %ld", status);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue