Skip to content

Commit

Permalink
fix some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Nov 4, 2015
1 parent c8cfee3 commit 8fe5f43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion service/crest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
print "import crest"
import thread
import config
import logging
Expand Down
5 changes: 3 additions & 2 deletions service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from wx.lib.pubsub import pub

import logging
import time

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -77,10 +78,9 @@ def get_request(self):

def stop(self):
self.run = False
self.server_close()

def handle_timeout(self):
logger.debug("Number of tries: %d"%self.tries)
#logger.debug("Number of tries: %d"%self.tries)
self.tries += 1
if self.tries == self.max_tries:
logger.debug("Server timed out waiting for connection")
Expand All @@ -92,6 +92,7 @@ def serve(self):
self.handle_request()
except TypeError:
pass
self.server_close()

if __name__ == "__main__":
httpd = StoppableHTTPServer(('', 6461), AuthHandler)
Expand Down

0 comments on commit 8fe5f43

Please sign in to comment.