TimerPool fixoutManipulator
git-svn-id: svn://db.shs.com.ru/pip@80 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -19,8 +19,7 @@ PIFileTransfer::PIFileTransfer() {
|
||||
|
||||
|
||||
PIFileTransfer::~PIFileTransfer() {
|
||||
break_ = true;
|
||||
files_.clear();
|
||||
stop();
|
||||
work_file.close();
|
||||
}
|
||||
|
||||
@@ -85,7 +84,10 @@ bool PIFileTransfer::sendFiles(const PIVector<PFTFileInfo> &files) {
|
||||
pftheader.step = pft_Description;
|
||||
buildSession(PIVector<Part>() << Part(0, desc.size()));
|
||||
cur_file_string = "";
|
||||
if (!send_process()) return false;
|
||||
if (!send_process()) {
|
||||
sendFilesFinished(false);
|
||||
return false;
|
||||
}
|
||||
pftheader.step = pft_Data;
|
||||
PIVector<Part> pts;
|
||||
for (int i=0; i<files_.size_s(); i++) {
|
||||
@@ -93,6 +95,7 @@ bool PIFileTransfer::sendFiles(const PIVector<PFTFileInfo> &files) {
|
||||
}
|
||||
buildSession(pts);
|
||||
bool ok = send_process();
|
||||
sendFilesFinished(ok);
|
||||
return ok;
|
||||
}
|
||||
|
||||
@@ -290,7 +293,4 @@ void PIFileTransfer::receive_finished(bool ok) {
|
||||
void PIFileTransfer::send_finished(bool ok) {
|
||||
work_file.close();
|
||||
started_ = false;
|
||||
sendFilesFinished(ok);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user