fix(core): avoid pooling channels with tools (fixes #4684)

This commit is contained in:
Ludovic Marcotte committed 2020-07-10 10:22:48 -04:00
1 parent a91a00e33c
commit cecf157dca
13 files changed
+42 -32

No files matched your search

+8 -1
View File
@@ -248,9 +248,16 @@ static GCSStringFormatter *stringFormatter = nil;
return [[self _channelManager] acquireOpenChannelForURL:[self aclLocation]];
}
- (void)releaseChannel:(EOAdaptorChannel *)_channel {
[self releaseChannel: _channel immediately: NO];
}
- (void) releaseChannel: (EOAdaptorChannel *) _channel
immediately: (BOOL) _immediately
{
if (debugOn) [self debugWithFormat:@"releasing channel: %@", _channel];
[[self _channelManager] releaseChannel:_channel];
[[self _channelManager] releaseChannel:_channel immediately: _immediately];
}
- (BOOL)canConnectStore {