Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-eiger
Commits
9df79ec2
Commit
9df79ec2
authored
Feb 12, 2020
by
Alejandro Homs Puron
Browse files
Restore Interface status to Ready if Camera::prepareAcq fails
parent
67e4e9d9
Changes
2
Show whitespace changes
Inline
Side-by-side
src/EigerInterface.cpp
View file @
9df79ec2
...
...
@@ -110,6 +110,7 @@ void Interface::prepareAcq()
m_stream
->
release_all_msgs
();
m_stream
->
resetStatistics
();
try
{
m_cam
.
prepareAcq
();
int
serie_id
;
m_cam
.
getSerieId
(
serie_id
);
m_saving
->
setSerieId
(
serie_id
);
...
...
@@ -117,6 +118,11 @@ void Interface::prepareAcq()
double
stream_armed_timeout
=
5.0
;
m_stream
->
waitArmed
(
stream_armed_timeout
);
}
}
catch
(...)
{
m_saving
->
stop
();
m_stream
->
stop
();
throw
;
}
}
//-----------------------------------------------------
...
...
src/EigerStream.cpp
View file @
9df79ec2
...
...
@@ -255,8 +255,12 @@ void Stream::stop()
{
DEB_MEMBER_FUNCT
();
AutoMutex
aLock
(
m_cond
.
mutex
());
if
(
!
_isRunning
())
bool
connected
=
(
m_state
==
Connected
);
if
(
!
_isRunning
()
||
connected
)
{
if
(
connected
)
_abort
();
return
;
}
DEB_TRACE
()
<<
"Stopped"
;
m_state
=
Stopped
;
_send_synchro
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment