Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] devtool should connect once time
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Jun 20, 2019
1 parent 345878f commit 24993c1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,7 @@ - (void)callBack:(NSString *)instanceId funcId:(NSString *)funcId params:(id)par

- (void)connectToDevToolWithUrl:(NSURL *)url {
WXPerformBlockOnBridgeThread(^(){
[self.bridgeCtx connectToDevToolWithUrl:url];
});
WXPerformBlockOnBackupBridgeThread(^(){
[self.backupBridgeCtx connectToDevToolWithUrl:url];
[self.bridgeCtx connectToDevToolWithUrl:url];
});
}

Expand All @@ -654,9 +651,6 @@ - (void)connectToWebSocket:(NSURL *)url
WXPerformBlockOnBridgeThread(^(){
[weakSelf.bridgeCtx connectToWebSocket:url];
});
WXPerformBlockOnBackupBridgeThread(^(){
[weakSelf.backupBridgeCtx connectToWebSocket:url];
});
}

- (void)logToWebSocket:(NSString *)flag message:(NSString *)message
Expand All @@ -667,9 +661,6 @@ - (void)logToWebSocket:(NSString *)flag message:(NSString *)message
WXPerformBlockOnBridgeThread(^(){
[weakSelf.bridgeCtx logToWebSocket:flag message:message];
});
WXPerformBlockOnBackupBridgeThread(^(){
[weakSelf.backupBridgeCtx logToWebSocket:flag message:message];
});
}

- (void)resetEnvironment
Expand Down

0 comments on commit 24993c1

Please sign in to comment.