diff --git a/src/ui/cm.tis b/src/ui/cm.tis
index ab3f22f12..931f64d92 100644
--- a/src/ui/cm.tis
+++ b/src/ui/cm.tis
@@ -13,7 +13,10 @@ class Body: Reactor.Component
}
function render() {
- if (connections.length == 0) return
;
+ if (connections.length == 0)
+ return
+ Waiting for new connection ...
+
;
var c = connections[this.cur];
this.connection = c;
this.cid = c.id;
@@ -360,7 +363,10 @@ function updateTime() {
updateTime();
+var tm0 = getTime();
+
function self.closing() {
+ if (connections.length == 0 && getTime() - tm0 > 30000) return true;
view.windowState = View.WINDOW_HIDDEN;
return false;
}