Index: samples/chat/chat_server.dart |
diff --git a/samples/chat/chat_server.dart b/samples/chat/chat_server.dart |
index 44972ad4cd477c4c7f490b93910991967055e0d5..35fcab949ead2026cc9436df2429d3d25885c923 100644 |
--- a/samples/chat/chat_server.dart |
+++ b/samples/chat/chat_server.dart |
@@ -20,6 +20,6 @@ void main() { |
// Start a shutdown timer if requested. |
if (stopAfter != null) { |
- new Timer((timer) => serverMain.shutdown(), stopAfter * 1000); |
+ new Timer(stopAfter * 1000, (timer) => serverMain.shutdown()); |
} |
} |