Skip to content

Commit

Permalink
Fixed SIGSEGV in OverlaySocket. (Recursive Singleton call)
Browse files Browse the repository at this point in the history
  • Loading branch information
GamePad64 committed Dec 9, 2013
1 parent a6a8281 commit 777b61d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/daemon/overlay/OverlayDHT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
namespace p2pnet {
namespace overlay {

OverlayDHT::OverlayDHT() : OverlayDHT(OverlaySocket::getInstance()) {}
OverlayDHT::OverlayDHT(OverlaySocket* socket_ptr) : dht::DHTService(), parent_socket_ptr(socket_ptr) {}

void OverlayDHT::send(const crypto::Hash& dest, const protocol::DHTPart& dht_part) {
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/overlay/OverlaySocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace p2pnet {
namespace overlay {

OverlaySocket::OverlaySocket() {}
OverlaySocket::OverlaySocket() : dht_service(this) {}

OverlaySocket::~OverlaySocket() {}

Expand Down

0 comments on commit 777b61d

Please sign in to comment.