mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
Start RFA connection on gamestart, test connection on bauble creation immediately
This commit is contained in:
@@ -5,8 +5,10 @@ import { Remote } from "./Remote";
|
||||
let server: Remote;
|
||||
|
||||
export function newRemoteFileApiConnection() : void {
|
||||
if(server == undefined)
|
||||
if(server == undefined) {
|
||||
server = new Remote("localhost", Settings.RemoteFileApiPort);
|
||||
server.startConnection();
|
||||
}
|
||||
else {
|
||||
server.stopConnection();
|
||||
server = new Remote("localhost", Settings.RemoteFileApiPort);
|
||||
|
||||
Reference in New Issue
Block a user