Skip to content

Commit 5822708

Browse files
committed
Released 9.2.4
1 parent 1ef4e76 commit 5822708

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

gui/lib/src/controller/backend_controller.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,12 @@ class BackendController extends GetxController {
105105
return;
106106
}
107107

108+
final serverType = type.value;
108109
final hostData = this.host.text.trim();
109110
final portData = this.port.text.trim();
110-
if(type() != ServerType.local) {
111-
started.value = true;
111+
started.value = true;
112+
if(serverType != ServerType.local || portData != kDefaultBackendPort.toString()) {
112113
yield ServerResult(ServerResultType.starting);
113-
}else {
114-
started.value = false;
115-
if(portData != kDefaultBackendPort.toString()) {
116-
yield ServerResult(ServerResultType.starting);
117-
}
118114
}
119115

120116
if (hostData.isEmpty) {
@@ -136,7 +132,7 @@ class BackendController extends GetxController {
136132
return;
137133
}
138134

139-
if ((type() != ServerType.local || portData != kDefaultBackendPort.toString()) && !(await isBackendPortFree())) {
135+
if ((serverType != ServerType.local || portData != kDefaultBackendPort.toString()) && !(await isBackendPortFree())) {
140136
yield ServerResult(ServerResultType.freeingPort);
141137
final result = await freeBackendPort();
142138
yield ServerResult(result ? ServerResultType.freePortSuccess : ServerResultType.freePortError);
@@ -146,7 +142,7 @@ class BackendController extends GetxController {
146142
}
147143
}
148144

149-
switch(type()){
145+
switch(serverType){
150146
case ServerType.embedded:
151147
final process = await startEmbeddedBackend(detached.value);
152148
embeddedProcessPid = process.pid;
@@ -173,6 +169,10 @@ class BackendController extends GetxController {
173169
}
174170

175171
localServer = await startRemoteBackendProxy(Uri.parse("http://$kDefaultBackendHost:$portData"));
172+
}else {
173+
// If the local server is running on port 3551 there is no reverse proxy running
174+
// We only need to check if everything is working
175+
started.value = false;
176176
}
177177

178178
break;

gui/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: reboot_launcher
22
description: Graphical User Interface for Project Reboot
3-
version: "9.2.3"
3+
version: "9.2.4"
44

55
publish_to: 'none'
66

0 commit comments

Comments
 (0)