Skip to content

暂停后恢复和重新开始失灵问题及解决 #1

@dky1996

Description

@dky1996
public void run() {
			while(running){
				if(pause){
					continue;
				}
				repaint();
				try {
					Thread.sleep(100);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
			
		}

continue前加个Thread.sleep(100);可以解决无限卡死问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions