$ git clone http://thingshare.ion.nu/thingshare.git
commit 2f1fcf3bd7a8f4b27582ff4b8ef5134177a55a79
Author: Alicia <...>
Date: Mon May 13 21:36:49 2024 +0200
Fixed the use of curl_multi_select() which now requires the curl handle as parameter.
diff --git a/rpc.php b/rpc.php
index 2a2b15c..1313b46 100644
--- a/rpc.php
+++ b/rpc.php
@@ -2,7 +2,7 @@
/*
This file is part of Thingshare, a federated system for sharing data for home manufacturing (e.g. 3D models to 3D print)
https://thingshare.ion.nu/
- Copyright (C) 2020 Alicia <...>
+ Copyright (C) 2020, 2024 Alicia <...>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -138,7 +138,7 @@ function rpc_search($domains, $rpc) // TODO: Is there a more appropriate name fo
// Run requests in parallel
while(($status=curl_multi_exec($multi, $running))==CURLM_OK && $running)
{
- curl_multi_select(); // Wait for activity
+ curl_multi_select($multi); // Wait for activity
}
// Handle responses
foreach($domains as $domain)