This commit is contained in:
nsubiron 2018-09-30 19:12:06 +02:00
parent 7771e5778c
commit f1a20eee8e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace client {
public:
template <typename Functor>
void Listen(Functor callback) {
void Listen(Functor &&callback) {
/// @todo should we check if we are already listening?
log_debug("sensor", GetId(), "type", GetTypeId(), ": subscribing to stream");
GetWorld()->GetClient().SubscribeToStream(_stream_token, std::forward<Functor>(callback));