Skip to content

Commit 961de1e

Browse files
committed
don't crash if loading Vistle plugin fails
1 parent a8f6c8f commit 961de1e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/OpenCOVER/cover/OpenCOVER.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,6 +1637,13 @@ void OpenCOVER::restartVrbc()
16371637
}
16381638

16391639
if (m_loadVistlePlugin) {
1640+
if (!m_visPlugin)
1641+
{
1642+
m_vrbc.reset();
1643+
std::cerr << "OpenCOVER::restartVrbc: Vistle plugin not loaded, cannot start VRB client" << std::endl;
1644+
return;
1645+
}
1646+
16401647
class PluginMessageSender : public covise::MessageSenderInterface {
16411648

16421649
public:

0 commit comments

Comments
 (0)