--- trunk/lib/Frey/Server.pm 2008/07/09 12:08:07 66 +++ trunk/lib/Frey/Server.pm 2008/07/09 13:11:26 67 @@ -60,7 +60,26 @@ warn $@; #$req->conn->send_error( 404 ); # FIXME this should probably be 500, but we can't ship page with it $req->print( qq{
$@
} );
-		$req->next;
+
+	} else {
+
+		my $f = Frey->new;
+		my $classes = Continuity::Widget::DomNode->create(
+			ul => [
+				map {
+					warn dump( $_ );
+					my ( $package, $path ) = %$_;
+					( li => [
+						a => { href => '/~/' . $package . '/' } => [ $package ],
+						' ',
+						a => { href => '/ob/' . $package } => [ 'browse' ],
+						" $path"
+					] )
+				} @{ $f->classes }
+			],
+		)->to_string;
+		$req->print( $classes );
+
 	}
 
 	# If this is a request for the pushtream, then give them that
@@ -73,22 +92,6 @@
 		send_message($req);
 	}
 
-	my $f = Frey->new;
-	my $classes = Continuity::Widget::DomNode->create(
-		ul => [
-			map {
-				warn dump( $_ );
-				my ( $package, $path ) = %$_;
-				( li => [
-					a => { href => '/~/' . $package . '/' } => [ $package ],
-					' ',
-					a => { href => '/ob/' . $package } => [ 'browse' ],
-					" $path"
-				] )
-			} @{ $f->classes }
-		],
-	)->to_string;
-	$req->print( $classes );
 }
 
 # Here we accept a connection to the browser, and keep it open. Meanwhile we