summaryrefslogtreecommitdiff
path: root/server-beta/src/proto
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/proto')
-rw-r--r--server-beta/src/proto/proto.lua11
1 files changed, 1 insertions, 10 deletions
diff --git a/server-beta/src/proto/proto.lua b/server-beta/src/proto/proto.lua
index cc9988a8..27ba68b8 100644
--- a/server-beta/src/proto/proto.lua
+++ b/server-beta/src/proto/proto.lua
@@ -112,16 +112,7 @@ function m.listen()
subprocess.filemode(io.stdout, 'b')
io.stdin:setvbuf 'no'
io.stdout:setvbuf 'no'
- task.create(function ()
- while true do
- local proto = pub.task('loadProto')
- if proto.method then
- m.doMethod(proto)
- else
- m.doResponse(proto)
- end
- end
- end)
+ pub.syncTask('loadProto')
end
return m