Skip to content

Commit

Permalink
command QUIT implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrianC-hub committed Jan 9, 2025
1 parent a62949d commit e22169c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ def cmd_REIN(socket, *args):
return response

def cmd_QUIT(socket, *args):
pass
"""Cierra la sesión y termina la ejecución del cliente"""
args_len = len(args)
response = argument_handler(0,0,args_len)
if response == "200":
response = send(socket, f'QUIT')
if not socket is None:
socket.close()
return response

# Navegación:
def cmd_PWD(socket, *args):
Expand Down

0 comments on commit e22169c

Please sign in to comment.