diff --git a/src/HandshakeLeakerSocket.as b/src/HandshakeLeakerSocket.as index 6de1a1d..9270d0a 100644 --- a/src/HandshakeLeakerSocket.as +++ b/src/HandshakeLeakerSocket.as @@ -4,8 +4,7 @@ package { public class HandshakeLeakerSocket extends Socket { private var flush_callback: Function; - - public var written_bytes: ByteArray = new ByteArray(); + private var written_bytes: ByteArray = new ByteArray(); public function HandshakeLeakerSocket(flush_callback: Function) { this.flush_callback = flush_callback; diff --git a/src/TFMSecretsLeaker.as b/src/TFMSecretsLeaker.as index a94fc88..6f86e32 100644 --- a/src/TFMSecretsLeaker.as +++ b/src/TFMSecretsLeaker.as @@ -144,6 +144,9 @@ package { return; } + /* Close the socket to better avoid any connection to the server. */ + socket.close(); + this.removeEventListener(Event.ENTER_FRAME, this.try_replace_socket); /*