[flutter_tools] flutter daemon handles a closed stdout IOSink (#105075)
This commit is contained in:
committed by
GitHub
parent
feda45a51b
commit
ac791adbc0
@@ -219,6 +219,10 @@ class DaemonStreams {
|
||||
if (binary != null) {
|
||||
_outputSink.add(binary);
|
||||
}
|
||||
} on StateError catch (error) {
|
||||
_logger.printError('Failed to write daemon command response: $error');
|
||||
// Failed to send, close the connection
|
||||
_outputSink.close();
|
||||
} on IOException catch (error) {
|
||||
_logger.printError('Failed to write daemon command response: $error');
|
||||
// Failed to send, close the connection
|
||||
|
||||
Reference in New Issue
Block a user