Disallow calling stop() or cancel() multiple times. This means that when you use startProgress you have to more carefully think about what exactly is going on. Properly cancel startProgress in non-ANSI situations, so that back-to-back startProgress calls all render to the console.
This commit is contained in:
@@ -109,8 +109,10 @@ Future<Null> pubGet({
|
||||
failureMessage: 'pub $command failed',
|
||||
retry: true,
|
||||
);
|
||||
} finally {
|
||||
status.stop();
|
||||
} catch (exception) {
|
||||
status.cancel();
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user