We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c097ec9 commit 7600b15Copy full SHA for 7600b15
1 file changed
rust/src/headless.rs
@@ -422,6 +422,15 @@ impl Session {
422
}
423
424
425
+impl Clone for Session {
426
+ fn clone(&self) -> Self {
427
+ SESSION_COUNT.fetch_add(1, SeqCst);
428
+ Self {
429
+ license_duration: self.license_duration,
430
+ }
431
432
+}
433
+
434
impl Drop for Session {
435
fn drop(&mut self) {
436
let previous_count = SESSION_COUNT.fetch_sub(1, SeqCst);
0 commit comments