Commit ea687a55 authored by Lennart Regebro's avatar Lennart Regebro

Issue 315:

--HG--
branch : distribute
extra : rebase_source : c7ad76794ac6db2a4bc1abc88e646ddcd14550db
parent ab7a3f12
......@@ -2,6 +2,7 @@
"""
import urllib2
import sys
import time
import threading
import BaseHTTPServer
from BaseHTTPServer import HTTPServer
......@@ -34,6 +35,9 @@ class IndexServer(HTTPServer):
def stop(self):
"Stop the server"
# Let the server finish the last request adn wait for a new one.
time.sleep(0.1)
# self.shutdown is not supported on python < 2.6, so just
# set _run to false, and make a request, causing it to
# terminate.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment