Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Brazhkin committed Sep 23, 2010
1 parent df71540 commit f80b0a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/enigmamachine/models/video.rb
Expand Up @@ -83,11 +83,15 @@ def check_file

def check_destroy
return true if (self.state != 'encoding')
#TODO Killing encoding process
result = false
return true if result
encoder = Encoder.get(self.encoder_id)
return true if self.stop_encode
throw :halt
end

def stop_encode
return false
#TODO Kill the encoder process
end

end

0 comments on commit f80b0a9

Please sign in to comment.