Skip to content

Commit 3498781

Browse files
Address comments
1 parent 7ab55db commit 3498781

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

WebDriverAgentLib/Routing/FBTCPSocket.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ - (void)stop
4949
{
5050
@synchronized(self.connectedClients) {
5151
NSArray *clients = self.connectedClients.copy;
52+
[self.connectedClients removeAllObjects];
5253
for (GCDAsyncSocket *client in clients) {
5354
[client disconnect];
5455
}

lib/xcodebuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export class XcodeBuild {
465465
try {
466466
currentStatus = (await noSessionProxy.command('/status', 'GET')) as StringRecord;
467467
if (currentStatus?.ios?.ip) {
468-
this.agentUrl = currentStatus.ios.ip as string | undefined;
468+
this.agentUrl = currentStatus.ios.ip as string;
469469
}
470470
this.log.debug(`WebDriverAgent information:`);
471471
this.log.debug(JSON.stringify(currentStatus, null, 2));

0 commit comments

Comments
 (0)