summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-02 10:38:05 +0100
committerMax Kellermann <max@musicpd.org>2016-11-02 10:38:05 +0100
commite2b7c30811a40f9600cf1138d0cccea587599a82 (patch)
treeb61e84493b15e75861ccb246f78a4c0bb2dfa424 /src/client
parentc8bb3c0b717bc0cd4fdfb40093963ce01a2d269b (diff)
event/BufferedSocket: pass std::exception_ptr to OnSocketError()
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Client.hxx2
-rw-r--r--src/client/ClientEvent.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx
index 4de5ad8c6..f46a38155 100644
--- a/src/client/Client.hxx
+++ b/src/client/Client.hxx
@@ -200,7 +200,7 @@ public:
private:
/* virtual methods from class BufferedSocket */
virtual InputResult OnSocketInput(void *data, size_t length) override;
- virtual void OnSocketError(Error &&error) override;
+ void OnSocketError(std::exception_ptr ep) override;
virtual void OnSocketClosed() override;
/* virtual methods from class TimeoutMonitor */
diff --git a/src/client/ClientEvent.cxx b/src/client/ClientEvent.cxx
index 064b542b9..2d90b90cf 100644
--- a/src/client/ClientEvent.cxx
+++ b/src/client/ClientEvent.cxx
@@ -22,9 +22,9 @@
#include "Log.hxx"
void
-Client::OnSocketError(Error &&error)
+Client::OnSocketError(std::exception_ptr ep)
{
- FormatError(error, "error on client %d", num);
+ FormatError(ep, "error on client %d", num);
SetExpired();
}