| Index: samples/chat/chat_server_lib.dart
|
| diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
|
| index b9ac74c6f34ffed47ef2daba406b428a6ad4be37..fe28ef4ebfa51ccd59bcb90715fdc97264eae86b 100644
|
| --- a/samples/chat/chat_server_lib.dart
|
| +++ b/samples/chat/chat_server_lib.dart
|
| @@ -375,9 +375,9 @@ class IsolatedServer extends Isolate {
|
| // Get the length of the file for setting the Content-Length header.
|
| RandomAccessFile openedFile = file.openSync();
|
| response.contentLength = openedFile.lengthSync();
|
| - openedFile.close();
|
| + openedFile.closeSync();
|
| // Pipe the file content into the response.
|
| - file.openInputStreamSync().pipe(response.outputStream);
|
| + file.openInputStream().pipe(response.outputStream);
|
| } else {
|
| print("File not found: $fileName");
|
| _notFoundHandler(request, response);
|
|
|