Skip to content

Commit

Permalink
Make driver field volatile, fixes #218
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed May 22, 2014
1 parent ff6295f commit e815620
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class Webcam {
/**
* Webcam driver (LtiCivil, JMF, FMJ, JQT, OpenCV, VLCj, etc).
*/
private static WebcamDriver driver = null;
private static volatile WebcamDriver driver = null;

/**
* Webcam discovery service.
Expand Down

0 comments on commit e815620

Please sign in to comment.