Sergio Pascual 8cbbf43
diff -ur cockpit-0.27/src/ws/cockpitwebservice.c cockpit-0.27-notimeout/src/ws/cockpitwebservice.c
Sergio Pascual 8cbbf43
--- cockpit-0.27/src/ws/cockpitwebservice.c	2014-10-10 13:39:03.000000000 +0200
Sergio Pascual 8cbbf43
+++ cockpit-0.27-notimeout/src/ws/cockpitwebservice.c	2015-03-25 11:45:07.772068925 +0100
Sergio Pascual 8cbbf43
@@ -166,7 +166,7 @@
Sergio Pascual 8cbbf43
   g_hash_table_remove (sessions->by_channel, channel);
Sergio Pascual 8cbbf43
   g_hash_table_remove (session->channels, channel);
Sergio Pascual 8cbbf43
 
Sergio Pascual 8cbbf43
-  if (g_hash_table_size (session->channels) == 0)
Sergio Pascual 8cbbf43
+  if (g_hash_table_size (session->channels) == 0 && !session->primary)
Sergio Pascual 8cbbf43
     {
Sergio Pascual 8cbbf43
       /*
Sergio Pascual 8cbbf43
        * Close sessions that are no longer in use after N seconds