Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-osc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrew Haigh
python-osc
Commits
53ac3312
Commit
53ac3312
authored
9 years ago
by
organic-jukebox
Browse files
Options
Downloads
Patches
Plain Diff
Better precision for timed message
parent
2b2eb6e6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pythonosc/osc_server.py
+1
-2
1 addition, 2 deletions
pythonosc/osc_server.py
with
1 addition
and
2 deletions
pythonosc/osc_server.py
+
1
−
2
View file @
53ac3312
...
...
@@ -31,7 +31,6 @@ loop.run_forever()
"""
import
asyncio
import
calendar
import
socketserver
import
time
...
...
@@ -59,7 +58,7 @@ def _call_handlers_for_packet(data, dispatcher):
try
:
packet
=
osc_packet
.
OscPacket
(
data
)
for
timed_msg
in
packet
.
messages
:
now
=
calendar
.
timegm
(
time
.
gm
time
()
)
now
=
time
.
time
()
handlers
=
dispatcher
.
handlers_for_address
(
timed_msg
.
message
.
address
)
if
not
handlers
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment