From 4ac8ddee3811e876f2155954e07d1fad67b2b868 Mon Sep 17 00:00:00 2001 From: Mitul Varshney <44923300+Mitul16@users.noreply.github.com> Date: Wed, 16 Jun 2021 20:54:50 +0530 Subject: [PATCH] Replaced redundant comments with informative ones --- pwncat/manager.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pwncat/manager.py b/pwncat/manager.py index ab16c55..88d6997 100644 --- a/pwncat/manager.py +++ b/pwncat/manager.py @@ -630,12 +630,9 @@ class Manager: session = Session(self, platform, channel, **kwargs) - # increment the ``session_id`` variable upon adding a new session - # this may cause issues when a session is not properly configured - # for example when the victim machine disconnects or terminates the parent process - # in that case, we have already incremented the ``session_id`` - # thus the ``session_id`` for the bad session is no longer in use - # check other modules to prevent this from happening + # Increment the ``session_id`` variable upon adding a new session + # Session constructor will automatically grab the current + # ``session_id`` from the ``manager`` object passed as the first argument self.session_id += 1