swallow exception when joystick cant be acquired, instead of crashing
This commit is contained in:
parent
930f680fc6
commit
ab46a076f2
|
@ -62,8 +62,15 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
public void Update()
|
public void Update()
|
||||||
{
|
{
|
||||||
if (joystick.Acquire().IsFailure)
|
try
|
||||||
|
{
|
||||||
|
if (joystick.Acquire().IsFailure)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
if (joystick.Poll().IsFailure)
|
if (joystick.Poll().IsFailure)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue