mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Delete extracted native code on exit
This commit is contained in:
parent
87f3706736
commit
56e9e6a245
@ -37,6 +37,8 @@ public class NativeCipher implements BungeeCipher
|
|||||||
{
|
{
|
||||||
// Else we will create and copy it to a temp file
|
// Else we will create and copy it to a temp file
|
||||||
File temp = File.createTempFile( "bungeecord-native-cipher", ".so" );
|
File temp = File.createTempFile( "bungeecord-native-cipher", ".so" );
|
||||||
|
temp.deleteOnExit();
|
||||||
|
|
||||||
try ( OutputStream outputStream = new FileOutputStream( temp ) )
|
try ( OutputStream outputStream = new FileOutputStream( temp ) )
|
||||||
{
|
{
|
||||||
ByteStreams.copy( lib, outputStream );
|
ByteStreams.copy( lib, outputStream );
|
||||||
|
Loading…
Reference in New Issue
Block a user