| Index: sdk/lib/_internal/pub/lib/src/barback.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/barback.dart b/sdk/lib/_internal/pub/lib/src/barback.dart
|
| index b543876c3d5486e848eab887a10cbefddc3f0793..52b97794cb3877d99df080e3405cb72bd9318367 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/barback.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/barback.dart
|
| @@ -119,15 +119,11 @@ Future<BarbackServer> createServer(String host, int port, PackageGraph graph,
|
| return BarbackServer.bind(host, port, barback, graph.entrypoint.root.name)
|
| .then((server) {
|
| return new Future.sync(() {
|
| - if (watcher == WatcherType.NONE) {
|
| - loadSources(graph, barback);
|
| - return;
|
| + if (watcher != WatcherType.NONE) {
|
| + return watchSources(graph, barback, watcher);
|
| }
|
|
|
| - return watchSources(graph, barback, (directory) {
|
| - if (watcher == WatcherType.AUTO) return new DirectoryWatcher(directory);
|
| - return new PollingDirectoryWatcher(directory);
|
| - });
|
| + loadSources(graph, barback);
|
| }).then((_) {
|
| var completer = new Completer();
|
|
|
|
|