@@ -64,7 +64,7 @@ @implementation RCTInspectorDevServerHelper
64
64
65
65
static void sendEventToAllConnections (NSString *event)
66
66
{
67
- @synchronized (socketConnections) {
67
+ @synchronized (socketConnections) { // [macOS]
68
68
for (NSString *socketId in socketConnections) {
69
69
[socketConnections[socketId] sendEventToAllConnections: event];
70
70
}
@@ -103,7 +103,7 @@ + (RCTInspectorPackagerConnection *)connectWithBundleURL:(NSURL *)bundleURL
103
103
// Note, using a static dictionary isn't really the greatest design, but
104
104
// the packager connection does the same thing, so it's at least consistent.
105
105
// This is a static map that holds different inspector clients per the inspectorURL
106
- @synchronized (socketConnections) {
106
+ @synchronized (socketConnections) { // [macOS]
107
107
if (socketConnections == nil ) {
108
108
socketConnections = [NSMutableDictionary new ];
109
109
}
@@ -119,7 +119,7 @@ + (RCTInspectorPackagerConnection *)connectWithBundleURL:(NSURL *)bundleURL
119
119
120
120
RCTInspectorPackagerConnection *connection;
121
121
122
- @synchronized (socketConnections) {
122
+ @synchronized (socketConnections) { // [macOS]
123
123
connection = socketConnections[key];
124
124
if (!connection || !connection.isConnected ) {
125
125
connection = [[RCTInspectorPackagerConnection alloc ] initWithURL: inspectorURL];
0 commit comments