Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions glvis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ class Session
};

void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient,
bool save_coloring, string plot_caption, bool headless = false)
bool save_coloring, string plot_caption, bool secure,
bool headless = false)
{
std::vector<Session> current_sessions;
string data_type;
Expand Down Expand Up @@ -197,6 +198,8 @@ void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient,
return;
}
}
#else
MFEM_CONTRACT_VAR(secure);
#endif

const int backlog = 128;
Expand Down Expand Up @@ -693,7 +696,7 @@ int main (int argc, char *argv[])
std::thread serverThread{GLVisServer, portnum, save_stream,
win.data_state.fix_elem_orient,
win.data_state.save_coloring,
win.plot_caption, win.headless};
win.plot_caption, secure, win.headless};

// Start message loop in main thread
MainThreadLoop(win.headless, persistent);
Expand Down
Loading