Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
Don't return existing session id when the wrong one is supplied (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham authored and andreastt committed Jun 1, 2017
1 parent bdd5efd commit dae3f06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ impl<T: WebDriverHandler<U>, U: WebDriverExtensionRoute> Dispatcher<T, U> {
if existing_session.id != *msg_session_id {
Err(WebDriverError::new(
ErrorStatus::InvalidSessionId,
format!("Got unexpected session id {} expected {}",
msg_session_id,
existing_session.id)))
format!("Got unexpected session id {}",
msg_session_id)))
} else {
Ok(())
}
Expand Down

0 comments on commit dae3f06

Please sign in to comment.