Permalink
Browse files

Revert "fix mock adserver condition"

This reverts commit 0cb1041.
  • Loading branch information...
1 parent 0cb1041 commit e6c5c48ba574f3646b845f01682520f9d28650f7 @mikeburkat mikeburkat committed Jul 6, 2016
Showing with 5 additions and 3 deletions.
  1. +5 −3 rtbkit/plugins/adserver/mock_adserver_connector.cc
@@ -19,9 +19,11 @@ MockAdServerConnector(std::string const & serviceName,
const Json::Value & json) :
HttpAdServerConnector(serviceName, proxies)
{
- int winPort = json.get("winPort", "12340").asInt();
- int eventPort = json.get("eventPort", "12341").asInt();
- init(winPort, eventPort);
+ if (json != Json::Value::null) {
+ int winPort = json.get("winPort", "12340").asInt();
+ int eventPort = json.get("eventPort", "12341").asInt();
+ init(winPort, eventPort);
+ }
}
MockAdServerConnector::

0 comments on commit e6c5c48

Please sign in to comment.