Roll engine to e976be13c51448f89107d082ec81e2b6731671fa (#17266)
* Roll engine to e976be13c51448f89107d082ec81e2b6731671fa * move away from deprecated constants
This commit is contained in:
@@ -460,7 +460,7 @@ Future<int> findAvailablePort() async {
|
||||
while (true) {
|
||||
try {
|
||||
final ServerSocket socket =
|
||||
await ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, port);
|
||||
await ServerSocket.bind(InternetAddress.loopbackIPv4, port);
|
||||
await socket.close();
|
||||
return port;
|
||||
} catch (_) {
|
||||
|
||||
Reference in New Issue
Block a user