mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-24 01:25:37 +01:00
Replaced redundant comments with informative ones
This commit is contained in:
parent
1ffbc0e8e7
commit
4ac8ddee38
@ -630,12 +630,9 @@ class Manager:
|
|||||||
|
|
||||||
session = Session(self, platform, channel, **kwargs)
|
session = Session(self, platform, channel, **kwargs)
|
||||||
|
|
||||||
# increment the ``session_id`` variable upon adding a new session
|
# Increment the ``session_id`` variable upon adding a new session
|
||||||
# this may cause issues when a session is not properly configured
|
# Session constructor will automatically grab the current
|
||||||
# for example when the victim machine disconnects or terminates the parent process
|
# ``session_id`` from the ``manager`` object passed as the first argument
|
||||||
# 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
|
|
||||||
|
|
||||||
self.session_id += 1
|
self.session_id += 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user