Permalink
Browse files

Missed a stash

  • Loading branch information...
heathermiller committed May 16, 2012
1 parent 53db738 commit cbba7610c1c79c102c2db5995a771089b15f0cd2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/library/scala/concurrent/SyncVar.scala
@@ -67,7 +67,7 @@ class SyncVar[A] {
* @return `None` if variable is undefined after `timeout`, `Some(value)` otherwise
*/
def take(timeout: Long): A = synchronized {
- try get(timeout)
+ try get(timeout).get
finally unsetVal()
}

0 comments on commit cbba761

Please sign in to comment.