Skip to content

Commit

Permalink
Fixed handling of 'mode' parameter when listener in SrtModel (#415)
Browse files Browse the repository at this point in the history
* Fixed handling of 'mode' parameter when listener in SrtModel
  • Loading branch information
ethouris authored and rndi committed Jun 15, 2018
1 parent e9e0611 commit 192c5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/testmedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ SrtModel::SrtModel(string host, int port, map<string,string> par)
is_caller = true;
else if (m_mode == "rendezvous")
is_rend = true;
else
else if (m_mode != "listener")
throw std::invalid_argument("Wrong 'mode' attribute; expected: caller, listener, rendezvous");

m_host = host;
Expand Down

0 comments on commit 192c5b3

Please sign in to comment.