Index: samples/chat/chat_server.dart |
diff --git a/samples/chat/chat_server.dart b/samples/chat/chat_server.dart |
index 3d0e2b79f46a564ec5e47020e5a9c745779810c5..36c1afb41447c6d7664a4d1cd46a80f0ca2a2667 100644 |
--- a/samples/chat/chat_server.dart |
+++ b/samples/chat/chat_server.dart |
@@ -16,8 +16,9 @@ void main() { |
// stopAfter for that. |
int stopAfter; |
+ var serverPort = spawnFunction(startChatServer); |
ServerMain serverMain = |
- new ServerMain.start(new ChatServer(), DEFAULT_HOST, DEFAULT_PORT); |
+ new ServerMain.start(serverPort, DEFAULT_HOST, DEFAULT_PORT); |
// Start a shutdown timer if requested. |
if (stopAfter != null) { |