Index: samples/chat/chat_server.dart |
diff --git a/samples/chat/chat_server.dart b/samples/chat/chat_server.dart |
index eae7ccf0cb765f62eee99c5ccb3fef8988143d9d..537068b14bef9b983f0be6e8104e3e041f2d093f 100644 |
--- a/samples/chat/chat_server.dart |
+++ b/samples/chat/chat_server.dart |
@@ -22,6 +22,6 @@ void main() { |
// Start a shutdown timer if requested. |
if (stopAfter != null) { |
- new Timer(stopAfter * 1000, (timer) => serverMain.shutdown()); |
+ new Timer(new Duration(seconds: stopAfter), serverMain.shutdown); |
} |
} |