Skip to content

Commit

Permalink
Eliminate the socket already in use message when restarting quickly.
Browse files Browse the repository at this point in the history
Fixes #61
  • Loading branch information
mblayman committed Dec 20, 2016
1 parent dde167d commit 2d7d855
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handroll/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def serve(site, director):
outdir = director.outdir
os.chdir(outdir)

socketserver.TCPServer.allow_reuse_address = True
httpd = socketserver.TCPServer(('', PORT), SimpleHTTPRequestHandler)

logger.info(
Expand Down

0 comments on commit 2d7d855

Please sign in to comment.