Skip to content

Commit

Permalink
Add docs to torch_neural_net.__del__
Browse files Browse the repository at this point in the history
  • Loading branch information
bamos committed Oct 21, 2016
1 parent 0b6b223 commit 6343e40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openface/torch_neural_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def exitHandler():
atexit.register(exitHandler)

def __del__(self):
"""__del__(self)
Kill the Lua subprocess.
"""
if self.p.poll() is None:
self.p.kill()

Expand Down

0 comments on commit 6343e40

Please sign in to comment.