Skip to content

Commit

Permalink
[core] Cleanup the useless tnkeep.
Browse files Browse the repository at this point in the history
  • Loading branch information
gou4shi1 authored and maxsharabayko committed Sep 29, 2022
1 parent c21a5ae commit e2f4375
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9966,11 +9966,7 @@ int srt::CUDT::processData(CUnit* in_unit)
tns1 << m_SocketID;
std::string s = tns1.str();
tns2 << "SRT:TsbPd:@" << s.substr(s.size()-2, 2);

const string& tn = tns2.str();

ThreadName tnkeep(tn);
const string& thname = tn;
const string thname = tns2.str();
#else
const string thname = "SRT:TsbPd";
#endif
Expand Down

0 comments on commit e2f4375

Please sign in to comment.