File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ void Skipper::skip() const {
5656 }
5757 std::string connection_to_kill;
5858 for (auto obj : json_document[" connections" ].toArray ()) {
59- if (obj.isObject () && obj.toObject ()[" metadata" ].toObject ()[" processPath" ] ==
60- " /Applications/ Hearthstone/Hearthstone .app/Contents/MacOS/Hearthstone" && obj.
61- toObject ()[" metadata" ].toObject ()[" host" ] == " " ) {
59+ if (obj.isObject () && obj.toObject ()[" metadata" ].toObject ()[" processPath" ]. toString ()
60+ . endsWith ( " Hearthstone.app/Contents/MacOS/Hearthstone" ) &&
61+ obj. toObject ()[" metadata" ].toObject ()[" host" ] == " " ) {
6262 connection_to_kill = obj.toObject ()[" id" ].toString ().toStdString ();
6363 SPDLOG_LOGGER_INFO (_logger, " Connection to kill {}" , connection_to_kill);
6464 }
You can’t perform that action at this time.
0 commit comments