diff options
Diffstat (limited to 'apt-private/acqprogress.cc')
-rw-r--r-- | apt-private/acqprogress.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc index b37934cd4..fa7edfc82 100644 --- a/apt-private/acqprogress.cc +++ b/apt-private/acqprogress.cc @@ -322,8 +322,10 @@ bool AcqTextStatus::MediaChange(std::string Media, std::string Drive) while (C != '\n' && C != '\r') { int len = read(STDIN_FILENO,&C,1); - if(C == 'c' || len <= 0) + if(C == 'c' || len <= 0) { bStatus = false; + break; + } } if(bStatus) |