git-svn-id: svn://db.shs.com.ru/pip@81 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -195,7 +195,10 @@ bool PIBaseTransfer::send_process() {
|
||||
if (send_queue >= packets_count || is_pause) {
|
||||
--i;
|
||||
piMSleep(1);
|
||||
if (is_pause && pause_tm.elapsed_s() > timeout())return finish_send(false);
|
||||
if (is_pause) {
|
||||
sendReply(pt_Pause);
|
||||
if (pause_tm.elapsed_s() > timeout())return finish_send(false);
|
||||
}
|
||||
if (send_tm.elapsed_s() > timeout_) return finish_send(false);
|
||||
if (stm.elapsed_s() > timeout_ / 10.)
|
||||
send_queue = 0;
|
||||
@@ -221,6 +224,7 @@ bool PIBaseTransfer::send_process() {
|
||||
}
|
||||
if (is_pause) {
|
||||
piMSleep(10);
|
||||
sendReply(pt_Pause);
|
||||
if (pause_tm.elapsed_s() > timeout())return finish_send(false);
|
||||
else continue;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ Daemon::TileFileProgress::TileFileProgress(): PIScreenTile() {
|
||||
buttons = new TileButtons("fd_buttons");
|
||||
buttons->content << TileButtons::Button("Pause", CellFormat());
|
||||
buttons->content << TileButtons::Button("Cancel", CellFormat());
|
||||
buttons->content << TileButtons::Button("Pause", CellFormat());
|
||||
buttons->back_format.color_back = label_file->back_format.color_back = label_speed->back_format.color_back = Yellow;
|
||||
label_file->back_format.color_char = label_speed->back_format.color_char = Black;
|
||||
label_file->content.resize(1);
|
||||
|
||||
Reference in New Issue
Block a user