Skip to content

Commit e97e59d

Browse files
author
Adam Gleitman
committed
Add macOS tags
1 parent 7ee34e1 commit e97e59d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-native/React/DevSupport/RCTInspectorDevServerHelper.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ @implementation RCTInspectorDevServerHelper
6464

6565
static void sendEventToAllConnections(NSString *event)
6666
{
67-
@synchronized (socketConnections) {
67+
@synchronized (socketConnections) { // [macOS]
6868
for (NSString *socketId in socketConnections) {
6969
[socketConnections[socketId] sendEventToAllConnections:event];
7070
}
@@ -103,7 +103,7 @@ + (RCTInspectorPackagerConnection *)connectWithBundleURL:(NSURL *)bundleURL
103103
// Note, using a static dictionary isn't really the greatest design, but
104104
// the packager connection does the same thing, so it's at least consistent.
105105
// This is a static map that holds different inspector clients per the inspectorURL
106-
@synchronized (socketConnections) {
106+
@synchronized (socketConnections) { // [macOS]
107107
if (socketConnections == nil) {
108108
socketConnections = [NSMutableDictionary new];
109109
}
@@ -119,7 +119,7 @@ + (RCTInspectorPackagerConnection *)connectWithBundleURL:(NSURL *)bundleURL
119119

120120
RCTInspectorPackagerConnection *connection;
121121

122-
@synchronized (socketConnections) {
122+
@synchronized (socketConnections) { // [macOS]
123123
connection = socketConnections[key];
124124
if (!connection || !connection.isConnected) {
125125
connection = [[RCTInspectorPackagerConnection alloc] initWithURL:inspectorURL];

0 commit comments

Comments
 (0)