mirror of
https://github.com/friendica/friendica
synced 2025-05-03 01:44:25 +02:00
Set the server status directly after transmission
This commit is contained in:
parent
8c60e853ca
commit
f1bcf1ef66
5 changed files with 23 additions and 11 deletions
|
@ -1040,7 +1040,7 @@ class DFRN
|
|||
}
|
||||
|
||||
if (!empty($contact['gsid'])) {
|
||||
GServer::setReachableById($contact['gsid']);
|
||||
GServer::setReachableById($contact['gsid'], Protocol::DFRN);
|
||||
}
|
||||
|
||||
if (!empty($res->message)) {
|
||||
|
|
|
@ -2958,7 +2958,7 @@ class Diaspora
|
|||
if (!empty($contact['gsid']) && (empty($return_code) || $postResult->isTimeout())) {
|
||||
GServer::setFailureById($contact['gsid']);
|
||||
} elseif (!empty($contact['gsid']) && ($return_code >= 200) && ($return_code <= 299)) {
|
||||
GServer::setReachableById($contact['gsid']);
|
||||
GServer::setReachableById($contact['gsid'], Protocol::DIASPORA);
|
||||
}
|
||||
|
||||
Logger::notice('transmit: ' . $logid . '-' . $guid . ' to ' . $dest_url . ' returns: ' . $return_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue