Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Jul 7, 2016
2 parents 2fe09c4 + f182317 commit 65d3088
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/KodiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ KodiInterface::KodiInterface()
_out.setPrefix(GD::out.getPrefix() + "Kodi interface: ");

signal(SIGPIPE, SIG_IGN);
_socket = std::unique_ptr<BaseLib::SocketOperations>(new BaseLib::SocketOperations(GD::bl));
_socket = std::unique_ptr<BaseLib::TcpSocket>(new BaseLib::TcpSocket(GD::bl));

_jsonEncoder.reset(new BaseLib::RPC::JsonEncoder(GD::bl));
_jsonDecoder.reset(new BaseLib::RPC::JsonDecoder(GD::bl));
Expand Down Expand Up @@ -247,7 +247,7 @@ void KodiInterface::startListening()
{
stopListening();
if(_hostname.empty()) return;
_socket = std::unique_ptr<BaseLib::SocketOperations>(new BaseLib::SocketOperations(GD::bl, _hostname, std::to_string(_port)));
_socket = std::unique_ptr<BaseLib::TcpSocket>(new BaseLib::TcpSocket(GD::bl, _hostname, std::to_string(_port)));
GD::bl->threadManager.start(_listenThread, true, &KodiInterface::listen, this);
}
catch(const std::exception& ex)
Expand Down
2 changes: 1 addition & 1 deletion src/KodiInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class KodiInterface
};

BaseLib::Output _out;
std::unique_ptr<BaseLib::SocketOperations> _socket;
std::unique_ptr<BaseLib::TcpSocket> _socket;
std::string _hostname;
int32_t _port = 9090;
std::unique_ptr<BaseLib::RPC::JsonEncoder> _jsonEncoder;
Expand Down
2 changes: 1 addition & 1 deletion src/MyPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ void MyPeer::getValuesFromPacket(std::shared_ptr<MyPacket> packet, std::vector<F
if(frame->channel == -2)
{
startChannel = 0;
endChannel = (_rpcDevice->functions.end()--)->first;
endChannel = _rpcDevice->functions.rbegin()->first;
}
else endChannel = startChannel;
for(int32_t l = startChannel; l <= endChannel; l++)
Expand Down

0 comments on commit 65d3088

Please sign in to comment.