Skip to content

Commit 43f4bf0

Browse files
committed
bug fix: forwarding lockTimeout in AlfServer functions
1 parent dfc9829 commit 43f4bf0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/AlfServer.cxx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ std::string AlfServer::scaBlobWrite(const std::string& parameter, AlfLink link)
7474
Sca sca = Sca(link, mSessions[link.serialId]);
7575

7676
bool lock = false;
77+
int lockTimeout = 0;
7778
// Check if the operation should be locked
7879
if (scaPairs[0].first == Sca::Operation::Lock) {
80+
lockTimeout = boost::get<int>(scaPairs[0].second);
7981
scaPairs.erase(scaPairs.begin());
8082
lock = true;
8183
}
82-
return sca.writeSequence(scaPairs, lock);
84+
return sca.writeSequence(scaPairs, lock, lockTimeout);
8385
}
8486

8587
std::string AlfServer::scaMftPsuBlobWrite(const std::string& parameter, AlfLink link)
@@ -105,12 +107,14 @@ std::string AlfServer::swtBlobWrite(const std::string& parameter, AlfLink link)
105107
Swt swt = Swt(link, mSessions[link.serialId], mSwtWordSize);
106108

107109
bool lock = false;
110+
int lockTimeout = 0;
108111
// Check if the operation should be locked
109112
if (swtPairs[0].first == Swt::Operation::Lock) {
110-
swtPairs.erase(swtPairs.begin());
113+
lockTimeout = boost::get<int>(swtPairs[0].second);
111114
lock = true;
115+
swtPairs.erase(swtPairs.begin());
112116
}
113-
return swt.writeSequence(swtPairs, lock);
117+
return swt.writeSequence(swtPairs, lock, lockTimeout);
114118
}
115119

116120
std::string AlfServer::icBlobWrite(const std::string& parameter, AlfLink link)

0 commit comments

Comments
 (0)