Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hughkli committed Dec 4, 2023
1 parent 861d33e commit 1abdedf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Src/Main/Shared/Peertalk/Lookin_PTChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ - (void)didInit {
ChannelUniqueID++;
ChannelInstanceCount++;
self.uniqueID = ChannelUniqueID;
NSLog(@"LookinServer - Init channel(ID: %@). Total count: %@", @(self.uniqueID), @(ChannelInstanceCount));
// NSLog(@"LookinServer - Init channel(ID: %@). Total count: %@", @(self.uniqueID), @(ChannelInstanceCount));
}

- (void)dealloc {
ChannelInstanceCount--;
NSLog(@"LookinServer - Dealloc channel%@. Still lives count: %@", self.debugTag, @(ChannelInstanceCount));
// NSLog(@"LookinServer - Dealloc channel%@. Still lives count: %@", self.debugTag, @(ChannelInstanceCount));
#if PT_DISPATCH_RETAIN_RELEASE
if (dispatchObj_channel_) dispatch_release(dispatchObj_channel_);
else if (dispatchObj_source_) dispatch_release(dispatchObj_source_);
Expand Down Expand Up @@ -446,7 +446,7 @@ - (BOOL)acceptIncomingConnection:(dispatch_fd_t)serverSocketFD {

NSError *err = nil;
if (![peerChannel startReadingFromConnectedChannel:dispatchChannel error:&err]) {
NSLog(@"startReadingFromConnectedChannel failed in accept: %@", err);
// NSLog(@"startReadingFromConnectedChannel failed in accept: %@", err);
}
} else {
close(clientSocketFD);
Expand All @@ -459,7 +459,7 @@ - (BOOL)acceptIncomingConnection:(dispatch_fd_t)serverSocketFD {


- (void)close {
NSLog(@"LookinServer - Will close chanel: %@", self.debugTag);
// NSLog(@"LookinServer - Will close chanel: %@", self.debugTag);

if ((connState_ == kConnStateConnecting || connState_ == kConnStateConnected) && dispatchObj_channel_) {
dispatch_io_close(dispatchObj_channel_, DISPATCH_IO_STOP);
Expand All @@ -471,7 +471,7 @@ - (void)close {

/// 曾经连接上 Client,然后 Client 端关闭时,Peertalk 内部会对之前 connect 的 channel 调用该方法
- (void)cancel {
NSLog(@"LookinServer - Will cancel chanel: %@", self.debugTag);
// NSLog(@"LookinServer - Will cancel chanel: %@", self.debugTag);

if ((connState_ == kConnStateConnecting || connState_ == kConnStateConnected) && dispatchObj_channel_) {
dispatch_io_close(dispatchObj_channel_, 0);
Expand Down

0 comments on commit 1abdedf

Please sign in to comment.