From 2e73d733f29bd9ee0bc5ff6ebd9275d4425e8615 Mon Sep 17 00:00:00 2001 From: nebojsa Date: Sat, 31 Oct 2009 14:47:42 +0000 Subject: [PATCH] ignore broken links so playback can go on --- campcaster/src/modules/storageServer/var/BasicStor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/campcaster/src/modules/storageServer/var/BasicStor.php b/campcaster/src/modules/storageServer/var/BasicStor.php index a90f5bf0e..835dc935b 100644 --- a/campcaster/src/modules/storageServer/var/BasicStor.php +++ b/campcaster/src/modules/storageServer/var/BasicStor.php @@ -369,11 +369,13 @@ class BasicStor { $token = StoredFile::CreateGunid(); if (!is_null($realFname)) { $linkFname = $CC_CONFIG['accessDir']."/$token.$ext"; - if (!is_file($realFname) && !is_link($realFname)) { + //broken links are ignored by the player, do not worry about it here +/* if (!is_file($realFname) && !is_link($realFname)) { return PEAR::raiseError( "BasicStor::bsAccess: real file not found ($realFname)", GBERR_FILEIO); } +*/ if (! @symlink($realFname, $linkFname)) { return PEAR::raiseError( "BasicStor::bsAccess: symlink create failed ($linkFname)",