Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug 795270 - jsbridge timeout has to use datetime.utcnow(). r=hskupin

  • Loading branch information...
commit 38fdc19b4e41e67ba1a62337073ab1f05b010d09 1 parent d37b5d5
moijes12 authored whimboo committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  jsbridge/jsbridge/__init__.py
4  jsbridge/jsbridge/__init__.py
@@ -27,10 +27,10 @@ def find_port():
27 27
 
28 28
 
29 29
 def wait_and_create_network(host, port, timeout=wait_to_create_timeout):
30  
-    deadline = datetime.now() + timedelta(seconds=timeout)
  30
+    deadline = datetime.utcnow() + timedelta(seconds=timeout)
31 31
     connected = False
32 32
 
33  
-    while datetime.now() < deadline:
  33
+    while datetime.utcnow() < deadline:
34 34
         try:
35 35
             s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
36 36
             s.connect((host, port))

0 notes on commit 38fdc19

Please sign in to comment.
Something went wrong with that request. Please try again.