Skip to content

Commit

Permalink
Fixed gevent-based server's code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbr committed Feb 1, 2013
1 parent 3e7a2d6 commit 4f9bc48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tinyrpc/server/gevent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import gevent

from . import RPCServer
Expand All @@ -9,4 +10,4 @@
class RPCServerGreenlets(RPCServer):
# documentation in docs because of dependencies
def _spawn(self, func, *args, **kwargs):
gevent.spawn()
gevent.spawn(func, *args, **kwargs)

0 comments on commit 4f9bc48

Please sign in to comment.