Giter Site home page Giter Site logo

Comments (5)

Nihisil avatar Nihisil commented on September 24, 2024 1

Thanks @0xsuu I see where is an issue, will fix it in the next 2-3 days.

from tenhou-python-bot.

Nihisil avatar Nihisil commented on September 24, 2024

@0xsuu Can you, please, try to reproduce the bug on the master branch? I did a commit that should fix it, you can check it there: f13081d

from tenhou-python-bot.

0xsuu avatar 0xsuu commented on September 24, 2024

@Nihisil Thanks for the quick fix, unfortunately, it still doesn't work. The bug can be reproduced by adding a sleep in the constructor of the AI. Sample output as follow:

2017-03-06 16:26:21 INFO: Bot AI enabled: True
2017-03-06 16:26:33 DEBUG: Send: <HELO name="NoName" tid="f0" sx="M" />
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 DEBUG: Get: 
2017-03-06 16:26:33 INFO: Auth message wasn't received
2017-03-06 16:26:33 DEBUG: Send: <BYE />
2017-03-06 16:26:33 INFO: End of the game

I've managed to obtain a quick fix as a reference. Please check the PR.

from tenhou-python-bot.

0xsuu avatar 0xsuu commented on September 24, 2024

@Nihisil Sorry about the coding style thing, was just trying to show what solves my problem.

And good news is your fix solves the problem!

Many thanks!

from tenhou-python-bot.

Nihisil avatar Nihisil commented on September 24, 2024

Thanks for the report)

from tenhou-python-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.