Fix for unknown FTN when connection is not established, try and catch unknown socket exception during session initialisation

This commit is contained in:
Deon George
2021-09-11 11:47:26 +10:00
parent 72bc9790d1
commit 7e176d7bc1
2 changed files with 10 additions and 2 deletions

View File

@@ -304,7 +304,7 @@ abstract class Protocol
Log::info(sprintf('%s: Total: %s - %d:%02d:%02d online, (%d) %lu%s sent, (%d) %lu%s received - %s',
self::LOGKEY,
$this->node->address->ftn,
$this->node->address ? $this->node->address->ftn : 'Unknown',
$this->node->session_time/3600,
$this->node->session_time%3600/60,
$this->node->session_time%60,