Skip to content

Commit 76b4e71

Browse files
committed
fake server: fix screen not initialized, add log terminating statement
1 parent dd7db98 commit 76b4e71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyrdp/mitm/FakeServer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def set_username(self, username: str):
308308
time.sleep(0.1)
309309
if self.fakeLoginScreen is not None:
310310
self.fakeLoginScreen.set_username(username)
311-
self.check_submit()
311+
self.check_submit()
312312

313313
def set_password(self, password: str):
314314
self.fakeLoginScreen.set_password(password)
@@ -318,5 +318,6 @@ def terminate(self):
318318
# TODO: the user sees "An internal error has occurred."
319319
for proc in (self.rdp_server_process, self.rdp_client_process):
320320
if not isinstance(proc, subprocess.CompletedProcess):
321+
self.log.info("Killing process %(name)s", {"name": " ".join(proc.args)})
321322
proc.kill()
322323
self.display.stop()

0 commit comments

Comments
 (0)