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) {
|
if (send_queue >= packets_count || is_pause) {
|
||||||
--i;
|
--i;
|
||||||
piMSleep(1);
|
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 (send_tm.elapsed_s() > timeout_) return finish_send(false);
|
||||||
if (stm.elapsed_s() > timeout_ / 10.)
|
if (stm.elapsed_s() > timeout_ / 10.)
|
||||||
send_queue = 0;
|
send_queue = 0;
|
||||||
@@ -221,6 +224,7 @@ bool PIBaseTransfer::send_process() {
|
|||||||
}
|
}
|
||||||
if (is_pause) {
|
if (is_pause) {
|
||||||
piMSleep(10);
|
piMSleep(10);
|
||||||
|
sendReply(pt_Pause);
|
||||||
if (pause_tm.elapsed_s() > timeout())return finish_send(false);
|
if (pause_tm.elapsed_s() > timeout())return finish_send(false);
|
||||||
else continue;
|
else continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ Daemon::TileFileProgress::TileFileProgress(): PIScreenTile() {
|
|||||||
buttons = new TileButtons("fd_buttons");
|
buttons = new TileButtons("fd_buttons");
|
||||||
buttons->content << TileButtons::Button("Pause", CellFormat());
|
buttons->content << TileButtons::Button("Pause", CellFormat());
|
||||||
buttons->content << TileButtons::Button("Cancel", 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;
|
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->back_format.color_char = label_speed->back_format.color_char = Black;
|
||||||
label_file->content.resize(1);
|
label_file->content.resize(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user