diff --git a/bindings/python/src/extensions.cpp b/bindings/python/src/extensions.cpp index 75efbbe6f..90a5d6722 100755 --- a/bindings/python/src/extensions.cpp +++ b/bindings/python/src/extensions.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include "gil.hpp" @@ -21,7 +22,7 @@ namespace lock_gil lock; if (override f = this->get_override("new_connection")) - return f(p); + return f(ptr(p)); return torrent_plugin::new_connection(p); } @@ -135,5 +136,8 @@ void bind_extensions() "on_resume" , &torrent_plugin::on_resume, &torrent_plugin_wrap::default_on_resume ); + + // TODO move to it's own file + class_("peer_connection", no_init); }