Skip to content

Commit 7d42bc7

Browse files
Qxyatcbracken
authored andcommitted
Reset NSNetService delegate to nil,when stop service. (flutter#11270)
1 parent 8a8610a commit 7d42bc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ - (void)stopService {
8080
}
8181
#else // TARGET_IPHONE_SIMULATOR
8282
[_netService.get() stop];
83+
[_netService.get() setDelegate:nil];
8384
#endif // TARGET_IPHONE_SIMULATOR
8485
}
8586

0 commit comments

Comments
 (0)