Skip to content

Commit

Permalink
api: rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
throwawayay authored Sep 20, 2021
1 parent 31fdc6f commit 3b9c450
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Server/Controller/Api.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,10 @@ def getInstall(request, response):
try:
url = ('%s:%s@%s:%d/api/download/%s/title.nsp' % (request.user.id, request.user.password, Config.server.hostname, Config.server.port, request.bits[2]))
Print.info('Installing ' + str(request.bits[2]))
# Print.info('Installing ' + url)
file_list_payloadBytes = url.encode('ascii')

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# sock.settimeout(1)
sock.connect((request.user.switchHost, request.user.switchPort))
# sock.settimeout(99999)

sock.sendall(struct.pack('!L', len(file_list_payloadBytes)) + file_list_payloadBytes)
while len(sock.recv(1)) < 1:
Expand Down

0 comments on commit 3b9c450

Please sign in to comment.