You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some occasions on some devices, when you scan the network and after it's done connect to that device on the same port the connection is not closed properly.
My proposal is to add flush and close before destroy:
final Socket s = await Socket.connect(host, port, timeout: timeout); await s.flush(); await s.close(); s.destroy();
The text was updated successfully, but these errors were encountered:
In some occasions on some devices, when you scan the network and after it's done connect to that device on the same port the connection is not closed properly.
My proposal is to add flush and close before destroy:
final Socket s = await Socket.connect(host, port, timeout: timeout); await s.flush(); await s.close(); s.destroy();
The text was updated successfully, but these errors were encountered: