[pve-devel] [PATCH] remove custom GUI timeout for stop and shutdown. Qemu API has already a useful default timeout.

Stefan Priebe s.priebe at profihost.ag
Fri Dec 7 13:23:13 CET 2012


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 www/manager/VNCConsole.js   |    6 +++---
 www/manager/qemu/CmdMenu.js |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/manager/VNCConsole.js b/www/manager/VNCConsole.js
index 4be014d..ace2e87 100644
--- a/www/manager/VNCConsole.js
+++ b/www/manager/VNCConsole.js
@@ -241,7 +241,7 @@ Ext.define('PVE.KVMConsole', {
 			if (btn !== 'yes') {
 			    return;
 			}
-			vm_command('shutdown', {timeout: 30});
+			vm_command('shutdown');
 		    });
 		}			    
 	    }, 
@@ -253,7 +253,7 @@ Ext.define('PVE.KVMConsole', {
 			if (btn !== 'yes') {
 			    return;
 			}
-			vm_command("stop", { timeout: 30});
+			vm_command("stop");
 		    }); 
 		}
 	    },
@@ -452,4 +452,4 @@ Ext.define('PVE.Shell', {
 
 	me.callParent();
     }
-});
\ No newline at end of file
+});
diff --git a/www/manager/qemu/CmdMenu.js b/www/manager/qemu/CmdMenu.js
index 61f14a3..c61d1c0 100644
--- a/www/manager/qemu/CmdMenu.js
+++ b/www/manager/qemu/CmdMenu.js
@@ -73,7 +73,7 @@ Ext.define('PVE.qemu.CmdMenu', {
 			    return;
 			}
 
-			vm_command("stop", { timeout: 30 });
+			vm_command("stop");
 		    });		   
 		}
 	    },
-- 
1.7.10.4




More information about the pve-devel mailing list