Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Fixing Issue #47
Browse files Browse the repository at this point in the history
  • Loading branch information
becast committed Mar 17, 2017
1 parent d048af3 commit 3806e00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ public void startNextUpload(){
Date start = _ToUpload.get(s).startAt;
if((start!=null && start.compareTo(new Date())<=0) || start==null){
UploadWorker w = _ToUpload.get(s);
w.resetUploader();
w.start();
LOG.info("Upload {} started",w.videodata.snippet.title);
_Uploading.add(w);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public UploadWorker(int id, File file, Video videodata, int speed_limit, VideoMe
}

public void prepare(){

try {
this.upload = this.uploader.prepareUpload(this.file, this.videodata);
} catch (IOException s){
Expand Down Expand Up @@ -156,7 +157,6 @@ public void resetUploader(){
this.uploader = new Uploader(this.AccMgr.getAuth(acc_id));
}


public void abort(){
this.uploader.abort();
}
Expand Down

0 comments on commit 3806e00

Please sign in to comment.