Index: /trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
===================================================================
--- /trunk/src/VBox/Frontends/VBoxShell/vboxshell.py	(revision 24696)
+++ /trunk/src/VBox/Frontends/VBoxShell/vboxshell.py	(revision 24697)
@@ -394,5 +394,5 @@
             traceback.print_exc()
         return
-    if session.state != ctx['ifaces'].SessionState_Open:
+    if str(session.state) != str(ctx['ifaces'].SessionState_Open):
         print "Session to '%s' in wrong state: %s" %(mach.name, session.state)
         return
