Skip to content

Commit

Permalink
Issue #62: Removed unneeded cargo on shutdown. Removed argument to SI…
Browse files Browse the repository at this point in the history
…GNAL SHUTDOWN. Tor doesn't like that anymore.
  • Loading branch information
tladesignz committed Apr 27, 2020
1 parent 2a92d38 commit 5ce782b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Tor/TORController.m
Expand Up @@ -232,11 +232,7 @@ - (BOOL)connect:(out NSError **)error {
}

- (void)disconnect {
[self sendCommand:@"SIGNAL NEWNYM" arguments:nil data:nil observer:^BOOL(NSArray<NSNumber *> * __unused codes, NSArray<NSData *> * __unused lines, BOOL * __unused stop) {
return YES;
}];

[self sendCommand:@"SIGNAL SHUTDOWN" arguments:@[@"0"] data:nil observer:^BOOL(NSArray<NSNumber *> * __unused codes, NSArray<NSData *> * __unused lines, BOOL * __unused stop) {
[self sendCommand:@"SIGNAL SHUTDOWN" arguments:nil data:nil observer:^BOOL(NSArray<NSNumber *> * __unused codes, NSArray<NSData *> * __unused lines, BOOL * __unused stop) {
shutdown(self->sock, SHUT_RDWR);
self->_channel = nil;

Expand Down

0 comments on commit 5ce782b

Please sign in to comment.