From d9df8c25a58f8fd1e37a8be45e918b09f6738a6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 19 May 2012 18:36:55 +0000 Subject: [PATCH] Very noisy function if failing. --- .../wrapper/states/class_PeerStateLookupDatabaseWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/hub/main/database/wrapper/states/class_PeerStateLookupDatabaseWrapper.php b/application/hub/main/database/wrapper/states/class_PeerStateLookupDatabaseWrapper.php index 4a1a6b21a..6b9cc07bd 100644 --- a/application/hub/main/database/wrapper/states/class_PeerStateLookupDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/states/class_PeerStateLookupDatabaseWrapper.php @@ -220,7 +220,7 @@ class PeerStateLookupDatabaseWrapper extends BaseDatabaseWrapper implements Look */ public function purgeOldEntriesBySocketResource ($socketResource) { // Get peer name - if (!socket_getpeername($socketResource, $peerName, $peerPort)) { + if (!@socket_getpeername($socketResource, $peerName, $peerPort)) { // Get last error $lastError = socket_last_error($socketResource); -- 2.39.5