@chatroomcp/chatroom 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -176,6 +176,17 @@ export class CloudController {
|
|
|
176
176
|
this.publishExternalAccess();
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
+
if (!this.state.publicPrefix) {
|
|
180
|
+
if (this.state.lease) {
|
|
181
|
+
this.state = { ...this.state, lease: null };
|
|
182
|
+
await this.store.save(this.state);
|
|
183
|
+
}
|
|
184
|
+
this.tunnel?.drainAndStop();
|
|
185
|
+
this.tunnel = null;
|
|
186
|
+
this.connection = "inactive";
|
|
187
|
+
this.publishExternalAccess();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
179
190
|
const current = this.state.lease;
|
|
180
191
|
const sameServices = current &&
|
|
181
192
|
requested.length === current.services.length &&
|