mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 23:16:14 +02:00
Fix wss reconnect
This commit is contained in:
parent
054706e608
commit
a407e68df6
3 changed files with 112 additions and 54 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -29,15 +29,15 @@ class SnapException : public std::exception
|
|||
int error_code_;
|
||||
|
||||
public:
|
||||
SnapException(const char* text, int error_code = 0) : text_(text), error_code_(error_code)
|
||||
explicit SnapException(const char* text, int error_code = 0) : text_(text), error_code_(error_code)
|
||||
{
|
||||
}
|
||||
|
||||
SnapException(const std::string& text, int error_code = 0) : SnapException(text.c_str(), error_code)
|
||||
explicit SnapException(const std::string& text, int error_code = 0) : SnapException(text.c_str(), error_code)
|
||||
{
|
||||
}
|
||||
|
||||
~SnapException() throw() override = default;
|
||||
~SnapException() override = default;
|
||||
|
||||
int code() const noexcept
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue