Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunj132 authored Jan 22, 2022
1 parent 0133cc2 commit c0603d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def server_start(port):
exec("""
class StoppableHTTPServer(http.server.HTTPServer):
def run(self):
os.chdir('ports')
os.chdir('""" + str(port) + """')
try:
os.chdir('ports')
os.chdir('""" + str(port) + """')
self.serve_forever()
except KeyboardInterrupt:
pass
Expand Down Expand Up @@ -85,6 +85,7 @@ def server_quit(port):
f = json.loads(f.read())['data']
for x in f:
sessions.insert(END, x)
server_start(x.split(':')[1])

end_index = sessions.index("end")
if end_index == 0:
Expand Down

0 comments on commit c0603d4

Please sign in to comment.