WebServer now does not attempt to destruct if threader is not up
authorDan
Sun, 04 Jan 2009 22:56:57 -0500
changeset 67 c4aefad02ce4
parent 66 f30ffbf92cdd
child 68 32f6e2ee15ab
WebServer now does not attempt to destruct if threader is not up
webserver.php
--- a/webserver.php	Tue Dec 23 20:37:36 2008 -0500
+++ b/webserver.php	Sun Jan 04 22:56:57 2009 -0500
@@ -351,6 +351,10 @@
   
   function __destruct()
   {
+    if ( !is_object($this->threader) )
+    {
+      return false;
+    }
     if ( !$this->threader->is_child() && $this->socket_initted )
     {
       if ( function_exists('status') )