Skip to content
Snippets Groups Projects
Commit 67e61094 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

client_config.py.example: Fix connection duplication

parent c2471b6c
Branches
No related tags found
No related merge requests found
......@@ -7,8 +7,8 @@ c = None
async def get_communication():
# This function must return communication.MainServer connected to your server
# Multiple calls to this function should return the same connection
global c
if not c:
cmd='ssh jr@externalArch.jk.dyn.blatto.eu /mnt/jr/jr/prog/run_py server.py'
socket = await communication.SSHRunSocket().connect(cmd)
c = communication.MainServer(socket)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment