mirror of https://github.com/aria2/aria2
				
				
				
			Fix compile error
							parent
							
								
									da7400ef5c
								
							
						
					
					
						commit
						0b1e05b13b
					
				| 
						 | 
				
			
			@ -41,7 +41,7 @@
 | 
			
		|||
#include <aria2/aria2.h>
 | 
			
		||||
 | 
			
		||||
int downloadEventCallback(aria2::Session* session, aria2::DownloadEvent event,
 | 
			
		||||
                          const aria2::A2Gid& gid, void* userData)
 | 
			
		||||
                          aria2::A2Gid gid, void* userData)
 | 
			
		||||
{
 | 
			
		||||
  switch(event) {
 | 
			
		||||
  case aria2::EVENT_ON_DOWNLOAD_COMPLETE:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ bool KeepRunningCommand::execute()
 | 
			
		|||
  if(e_->isHaltRequested()) {
 | 
			
		||||
    return true;
 | 
			
		||||
  }
 | 
			
		||||
  e_->addCommand(this);
 | 
			
		||||
  e_->addCommand(std::unique_ptr<Command>(this));
 | 
			
		||||
  return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -128,7 +128,7 @@ Session* sessionNew(const KeyVals& options, const SessionConfig& config)
 | 
			
		|||
    if(config.keepRunning) {
 | 
			
		||||
      e->getRequestGroupMan()->setKeepRunning(true);
 | 
			
		||||
      // Add command to make aria2 keep event polling
 | 
			
		||||
      e->addCommand(new KeepRunningCommand(e->newCUID(), e.get()));
 | 
			
		||||
      e->addCommand(make_unique<KeepRunningCommand>(e->newCUID(), e.get()));
 | 
			
		||||
    }
 | 
			
		||||
    if(config.downloadEventCallback) {
 | 
			
		||||
      std::shared_ptr<DownloadEventListener> listener
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue