Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnSessionCancelled gets called right after OnSessionStarted #2

Open
mewais opened this issue Mar 23, 2018 · 1 comment
Open

OnSessionCancelled gets called right after OnSessionStarted #2

mewais opened this issue Mar 23, 2018 · 1 comment

Comments

@mewais
Copy link

mewais commented Mar 23, 2018

Hi there,

I'm building a JuiceSSH plugin, and like it says in the title, I get calls to OnSessionCancelled right after OnSessionStarted. looking at the file here I think line 286 is missing a break;?

I guess the reason this passed uncaught before is because in the example plugin and performance monitors use an empty OnSessionCancelled callback.

@1951FDG
Copy link

1951FDG commented Nov 9, 2018

Hi @mewais,

You're absolutely right!

fallthrough in switch statements is a cause of bugs!

**Fallthrough in 'switch' statement less... (⌘F1)** 
Reports 'fall-through' in a switch statement. Fall-through is defined to occur when a 
series of executable statements after a switch label is not guaranteed to transfer 
control before the next switch label. In that case, control falls through to the 
statements after that switch label, even though the switch expression does not equal the 
value of the fallen-through label. While occasionally intended, this construction is 
confusing, and is often the result of a typo.

I've forked this repo and made some minor changes including a bugfix for this particular issue!!
https://github.com/1951FDG/juicessh-pluginlibrary

My fork is available as a JitPack repository
https://jitpack.io/#1951FDG/juicessh-pluginlibrary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants