Permalink
Browse files

added shutdown

  • Loading branch information...
1 parent 31e0a01 commit ee57bf1f19681cc5e11ee03a970cc5b7df5d7ce2 @lvivski committed Mar 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/start.dart
View
5 lib/start.dart
@@ -23,4 +23,9 @@ class Start {
_serverPort.send(message, _statusPort.toSendPort());
});
}
+
+ void shutdown() {
+ _serverPort.send(new Message.stop(), _statusPort.toSendPort());
+ _statusPort.close();
+ }
}

0 comments on commit ee57bf1

Please sign in to comment.