Corrected last commit.

This commit is contained in:
Peter Åstrand (astrand) 2013-03-18 13:25:53 +01:00
parent debc926612
commit b05b773bd7
1 changed files with 2 additions and 1 deletions

View File

@ -401,10 +401,11 @@ def websockify_init():
if libserver:
# Use standard Python SocketServer framework
server = LibProxyServer(ProxyRequestHandler, **opts.__dict__)
server.serve_forever()
else:
# Use internal service framework
server = WebSocketProxy(ProxyRequestHandler, **opts.__dict__)
server.start_server()
server.start_server()
class LibProxyServer(SocketServer.ForkingMixIn, BaseHTTPServer.HTTPServer):