Fix a couple of places where we weren't checking for dead hublocs. Add a function to mark a hubloc dead.
This commit is contained in:
@@ -170,7 +170,16 @@ function hubloc_change_primary($hubloc) {
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// We use the post url to distinguish between http and https hublocs.
|
||||
// The https might be alive, and the http dead.
|
||||
|
||||
function hubloc_mark_as_down($posturl) {
|
||||
$r = q("update hubloc set hubloc_status = ( hubloc_status | %d ) where hubloc_posturl = '%s'",
|
||||
intval(HUBLOC_OFFLINE)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function xchan_store($arr) {
|
||||
|
||||
|
Reference in New Issue
Block a user