Browse Source

Ignore run() in emscripten

rdb 9 years ago
parent
commit
e0e2d6d222
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/task/Task.py

+ 3 - 0
direct/src/task/Task.py

@@ -483,6 +483,9 @@ class TaskManager:
         """Starts the task manager running.  Does not return until an
         """Starts the task manager running.  Does not return until an
         exception is encountered (including KeyboardInterrupt). """
         exception is encountered (including KeyboardInterrupt). """
 
 
+        if PandaSystem.getPlatform() == 'emscripten':
+            return
+
         # Set the clock to have last frame's time in case we were
         # Set the clock to have last frame's time in case we were
         # Paused at the prompt for a long time
         # Paused at the prompt for a long time
         t = self.globalClock.getFrameTime()
         t = self.globalClock.getFrameTime()