Skip to content

Commit

Permalink
Merge pull request #11 from lebronzhang/dev
Browse files Browse the repository at this point in the history
Fixed #10
  • Loading branch information
huningxin authored Jun 15, 2016
2 parents fa5d029 + 355a5f6 commit 523cebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/src/librealsense/librealsense_device_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pcl::io::librealsense::LibRealSenseDeviceManager::captureDevice (LibRealSenseGra
boost::mutex::scoped_lock lock (mutex_);
for (size_t i = 0; i < context_.get_device_count (); ++i)
{
if (context_.get_device (i)->get_serial () == sn)
if (context_.get_device (i)->get_serial () == sn || context_.get_device (i)->get_serial () == sn + " ")
{
if (isCaptured (sn))
THROW_IO_EXCEPTION ("device with serial number %s is captured by another grabber", sn.c_str ());
Expand Down

0 comments on commit 523cebf

Please sign in to comment.